]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-format.patch
- more locale dirs: cv[_RU], sd[@IN]; release 7
[packages/glibc.git] / glibc-format.patch
CommitLineData
3029a176
AM
1--- glibc-2.17/stdio-common/test-vfprintf.c~ 2012-12-25 04:02:13.000000000 +0100
2+++ glibc-2.17/stdio-common/test-vfprintf.c 2013-01-09 22:34:39.763896649 +0100
3@@ -92,7 +92,7 @@
4 fprintf (fp, "%s", large);
5 fprintf (fp, "%.*s", 30000, large);
6 large[20000] = '\0';
7- fprintf (fp, large);
8+ fprintf (fp, "%s", large);
9 fprintf (fp, "%-1.300000000s", "hello");
10
11 if (fflush (fp) != 0 || ferror (fp) != 0 || fclose (fp) != 0)
12--- glibc-2.17/posix/regexbug1.c~ 2012-12-25 04:02:13.000000000 +0100
13+++ glibc-2.17/posix/regexbug1.c 2013-01-09 22:36:56.763888226 +0100
14@@ -18,7 +18,7 @@
15 {
16 char buf[100];
17 regerror (reerr, &re, buf, sizeof buf);
18- error (EXIT_FAILURE, 0, buf);
19+ error (EXIT_FAILURE, 0, "%s", buf);
20 }
21
22 if (regexec (&re, "002", 2, ma, 0) != 0)
23@@ -35,7 +35,7 @@
24 {
25 char buf[100];
26 regerror (reerr, &re, buf, sizeof buf);
27- error (EXIT_FAILURE, 0, buf);
28+ error (EXIT_FAILURE, 0, "%s", buf);
29 }
30
31 if (regexec (&re, "002", 2, ma, 0) != 0)
32--- glibc-2.17/misc/tst-error1.c~ 2012-12-25 04:02:13.000000000 +0100
33+++ glibc-2.17/misc/tst-error1.c 2013-01-09 22:38:17.262508638 +0100
34@@ -15,10 +15,10 @@
35 static const char str[] = "hello world! ";
36 for (int i = 0; i < 1000; ++i)
37 memcpy (&buf[i * (sizeof (str) - 1)], str, sizeof (str));
38- error (0, 0, str);
39- error (0, 0, buf);
40- error (0, 0, buf);
41- error (0, 0, str);
42+ error (0, 0, "%s", str);
43+ error (0, 0, "%s", buf);
44+ error (0, 0, "%s", buf);
45+ error (0, 0, "%s", str);
46 return 0;
47 }
48
This page took 0.026471 seconds and 4 git commands to generate.