From: Timo Sirainen Date: Thu, 20 Apr 2023 00:17:23 +0000 (+0300) Subject: config: Fix doveconf section output when char is unsigned X-Git-Tag: 2.4.0~2119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d6280c750dcd3a3aca8fc974274eca08fe8a02a;p=thirdparty%2Fdovecot%2Fcore.git config: Fix doveconf section output when char is unsigned This happened at least with ARM CPU. --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 81a6358b41..bd990df7bb 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -104,7 +104,7 @@ static int config_string_cmp(const char *const *p1, const char *const *p2) if (s2[i] == '=') return 1; - return s1[i] - s2[i]; + return (signed char)s1[i] - (signed char)s2[i]; } static struct prefix_stack prefix_stack_pop(ARRAY_TYPE(prefix_stack) *stack)