From: Volker Lendecke Date: Wed, 11 Feb 2015 16:16:50 +0000 (+0100) Subject: snprintf: Try to support %j X-Git-Tag: samba-4.2.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f64557172da25c2745986600324311a5aee4e962;p=thirdparty%2Fsamba.git snprintf: Try to support %j Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Feb 12 23:34:33 CET 2015 on sn-devel-104 (cherry picked from commit 5f08d8b1728cc4559e61e0c928577724e0e2f9d2) BUG: https://bugzilla.samba.org/show_bug.cgi?id=11119 lib/replace/sprintf.c needs to support format specifier %j Autobuild-User(v4-2-test): Karolin Seeger Autobuild-Date(v4-2-test): Sun Mar 1 23:49:26 CET 2015 on sn-devel-104 --- diff --git a/lib/replace/snprintf.c b/lib/replace/snprintf.c index 6b4a711045c..86ba74cf4f8 100644 --- a/lib/replace/snprintf.c +++ b/lib/replace/snprintf.c @@ -445,6 +445,10 @@ static int dopr(char *buffer, size_t maxlen, const char *format, va_list args_in ch = *format++; } break; + case 'j': + cnk->cflags = DP_C_LLONG; + ch = *format++; + break; case 'L': cnk->cflags = DP_C_LDOUBLE; ch = *format++;