This patch is from upstream and shouldn't be needed in the next release. https://github.com/philj56/tofi/commit/667075f0920da3c2b353fbce54b6430c195ef031.patch From 667075f0920da3c2b353fbce54b6430c195ef031 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 30 Apr 2023 20:08:57 +0100 Subject: [PATCH] Replace `strto[u]l` with `strto[u]ll`. On 32-bit systems, using `strtoul` was causing negative values for unsigned options to be treated as valid, as the value was being parsed as a 32-bit unsigned int, then cast to a 64-bit signed int, which remained positive. --- src/color.c | 8 ++++---- src/config.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/color.c b/src/color.c index 4b6b356..b1d5e90 100644 --- a/src/color.c +++ b/src/color.c @@ -22,7 +22,7 @@ struct color hex_to_color(const char *hex) hex[2], hex[2], '\0'}; char *endptr; - tmp = strtol(str, &endptr, 16); + tmp = strtoll(str, &endptr, 16); if
aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/locale.scm
diff options
context: