]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdio-common/bug14.c
vfprintf: Fix memory with large width and precision [BZ #19931]
[thirdparty/glibc.git] / stdio-common / bug14.c
index 31ef7543588e5a924b38cfaec45c0de45b9ca3dd..317d4969d354a17541f6953038ae2bd96be0d440 100644 (file)
@@ -2,6 +2,7 @@
 #include <locale.h>
 #include <wchar.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 /* MB_CUR_MAX multibyte ones (6 UTF+0080, in this case) */
 static const char string[] = "\
@@ -10,7 +11,7 @@ static const char string[] = "\
 int
 main (void)
 {
-  if (setlocale (LC_ALL, "de_DE.utf8") == NULL)
+  if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL)
     {
       puts ("cannot set locale");
       exit (1);