]> git.pld-linux.org Git - packages/xorg-app-editres.git/blame - xorg-app-editres-format.patch
- added format patch (fixes build with -Werror=format-security, adds some bounds...
[packages/xorg-app-editres.git] / xorg-app-editres-format.patch
CommitLineData
ac325be9
JB
1--- editres-1.0.6/geometry.c.orig 2013-01-13 01:05:30.000000000 +0100
2+++ editres-1.0.6/geometry.c 2013-01-15 19:21:30.973960183 +0100
3@@ -63,7 +63,7 @@ _FindWidget(Widget w)
4 Window win;
5 int x, y; /* location of event in root coordinates. */
6
7- sprintf(msg, res_labels[14]);
8+ snprintf(msg, BUFSIZ, "%s", res_labels[14]);
9
10 SetMessage(global_screen_data.info_label, msg);
11
12@@ -103,7 +103,7 @@ DisplayChild(Event *event)
13 find_event->widgets.num_widgets);
14
15 if (node == NULL) {
16- sprintf(msg, res_labels[13]);
17+ snprintf(msg, BUFSIZ, "%s", res_labels[13]);
18 SetMessage(global_screen_data.info_label, msg);
19 return;
20 }
21--- editres-1.0.6/svpopup.c.orig 2013-01-13 01:05:30.000000000 +0100
22+++ editres-1.0.6/svpopup.c 2013-01-15 19:24:45.332921442 +0100
23@@ -127,7 +127,7 @@ ModifySVEntry(Widget w, XEvent *event, S
24 old = global_screen_data.res_text;
25 break;
26 default:
27- sprintf(msg, res_labels[22]);
28+ snprintf(msg, BUFSIZ, "%s", res_labels[22]);
29 SetMessage(global_screen_data.info_label, msg);
30 return;
31 }
32--- editres-1.0.6/utils.c.orig 2013-01-13 01:05:30.000000000 +0100
33+++ editres-1.0.6/utils.c 2013-01-15 19:25:25.208093290 +0100
34@@ -518,7 +518,7 @@ HandleGetResources(Event *event)
35 get_event->info[i].widgets.num_widgets);
36
37 if (node == NULL) {
38- sprintf(buf, res_labels[16]);
39+ snprintf(buf, BUFSIZ, "%s", res_labels[16]);
40 AddString(&errors, buf);
41 continue;
42 }
This page took 0.090974 seconds and 4 git commands to generate.