From: Arran Cudbard-Bell Date: Tue, 4 Jul 2017 20:55:44 +0000 (-0400) Subject: Dumb typo in vasprintf that misaligned the rest of the variadic arguments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ce34e82c381556856b31ea7b901dc1006b4fbcf;p=thirdparty%2Ffreeradius-server.git Dumb typo in vasprintf that misaligned the rest of the variadic arguments --- diff --git a/src/lib/util/print.c b/src/lib/util/print.c index 698f557056f..8040605e59b 100644 --- a/src/lib/util/print.c +++ b/src/lib/util/print.c @@ -571,15 +571,15 @@ char *fr_vasprintf(TALLOC_CTX *ctx, char const *fmt, va_list ap) } break; - case 'L': + case 'l': if ((*p == 'i') || (*p == 'd')) { - if (len [1] == 'L') { + if (len[1] == 'l') { (void) va_arg(ap_q, long); /* long */ } else { (void) va_arg(ap_q, long long); /* long long */ } } else { - if (len [1] == 'L') { + if (len[1] == 'l') { (void) va_arg(ap_q, unsigned long); /* unsigned long */ } else { (void) va_arg(ap_q, unsigned long long);/* unsigned long long */