updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xorg-editres / editres-1.0.3-fix-str-fmt.patch
bloba421f717d1c84f89ab6e0e12892cf0d06ed16081
1 --- geometry.c.str 2009-04-07 15:46:08.000000000 +0200
2 +++ geometry.c 2009-04-07 15:46:41.000000000 +0200
3 @@ -66,7 +66,7 @@
4 Window win;
5 int x, y; /* location of event in root coordinates. */
7 - sprintf(msg, res_labels[14]);
8 + sprintf(msg, "%s", res_labels[14]);
10 SetMessage(global_screen_data.info_label, msg);
12 @@ -107,7 +107,7 @@
13 find_event->widgets.num_widgets);
15 if (node == NULL) {
16 - sprintf(msg, res_labels[13]);
17 + sprintf(msg, "%s", res_labels[13]);
18 SetMessage(global_screen_data.info_label, msg);
19 return;
21 --- svpopup.c.str 2009-04-07 15:46:54.000000000 +0200
22 +++ svpopup.c 2009-04-07 15:47:11.000000000 +0200
23 @@ -135,7 +135,7 @@
24 old = global_screen_data.res_text;
25 break;
26 default:
27 - sprintf(msg, res_labels[22]);
28 + sprintf(msg, "%s", res_labels[22]);
29 SetMessage(global_screen_data.info_label, msg);
30 return;
32 --- utils.c.str 2009-04-07 15:47:21.000000000 +0200
33 +++ utils.c 2009-04-07 15:47:34.000000000 +0200
34 @@ -546,7 +546,7 @@
35 get_event->info[i].widgets.num_widgets);
37 if (node == NULL) {
38 - sprintf(buf, res_labels[16]);
39 + sprintf(buf, "%s", res_labels[16]);
40 AddString(&errors, buf);
41 continue;