From de477abcaaabb1f9815cb63876637a47a95e7ac1 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Netto Date: Thu, 1 Sep 2022 10:02:30 -0300 Subject: Use '%z' instead of '%Z' on printf functions The Z modifier is a nonstandard synonymn for z (that predates z itself) and compiler might issue an warning for in invalid conversion specifier. Reviewed-by: Florian Weimer --- wcsmbs/wcsmbs-tst1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wcsmbs/wcsmbs-tst1.c') diff --git a/wcsmbs/wcsmbs-tst1.c b/wcsmbs/wcsmbs-tst1.c index 0d0e18f..75b745a 100644 --- a/wcsmbs/wcsmbs-tst1.c +++ b/wcsmbs/wcsmbs-tst1.c @@ -20,7 +20,7 @@ main (void) pchar = setlocale (LC_ALL, "de_DE.UTF-8"); printf ("locale : %s\n",pchar); - printf ("MB_CUR_MAX %Zd\n", MB_CUR_MAX); + printf ("MB_CUR_MAX %zd\n", MB_CUR_MAX); puts ("---- test 1 ------"); test = mbstowcs (tmp, str, (strlen (str) + 1) * sizeof (char)); -- cgit v1.1