]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-var-expand: Use %jd since we deal with intmax_t
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Jan 2026 08:32:04 +0000 (10:32 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Jan 2026 09:42:06 +0000 (11:42 +0200)
src/lib-var-expand/expansion-parameter.c

index 1e95e15a1e77b06bb09135c790fcc48600ca3289..ef2a637a715ad5f4663bb1aa59e596634327cedd 100644 (file)
@@ -142,7 +142,7 @@ void var_expand_parameter_dump(string_t *dest, const struct var_expand_parameter
                str_printfa(dest, "'%s'", par->value.str);
                break;
        case VAR_EXPAND_PARAMETER_VALUE_TYPE_INT:
-               str_printfa(dest, "%ld", par->value.num);
+               str_printfa(dest, "%jd", par->value.num);
                break;
        case VAR_EXPAND_PARAMETER_VALUE_TYPE_VARIABLE:
                str_append(dest, par->value.str);