Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > 76b3fef350de45f386d2f93438663fc5 > files > 1

editres-1.0.7-2.mga7.src.rpm

diff -up ./geometry.c.tv ./geometry.c
--- ./geometry.c.tv	2018-03-05 03:44:23.000000000 +0100
+++ ./geometry.c	2018-03-13 13:30:26.591466696 +0100
@@ -63,7 +63,7 @@ _FindWidget(Widget w)
     Window win;
     int x, y;			/* location of event in root coordinates. */
 
-    snprintf(msg, sizeof(msg), res_labels[14]);
+    snprintf(msg, "%s", sizeof(msg), res_labels[14]);
 
     SetMessage(global_screen_data.info_label, msg);
 
@@ -103,7 +103,7 @@ DisplayChild(Event *event)
 		    find_event->widgets.num_widgets);
 
     if (node == NULL) {
-	snprintf(msg, sizeof(msg), res_labels[13]);
+	snprintf(msg, "%s", sizeof(msg), res_labels[13]);
 	SetMessage(global_screen_data.info_label, msg);
 	return;
     }
diff -up ./svpopup.c.tv ./svpopup.c
--- ./svpopup.c.tv	2018-03-05 03:44:23.000000000 +0100
+++ ./svpopup.c	2018-03-13 13:30:34.065594314 +0100
@@ -127,7 +127,7 @@ ModifySVEntry(Widget w, XEvent *event, S
 	old = global_screen_data.res_text;
 	break;
     default:
-	snprintf(msg, sizeof(msg), res_labels[22]);
+	snprintf(msg, "%s", sizeof(msg), res_labels[22]);
 	SetMessage(global_screen_data.info_label, msg);
 	return;
     }
diff -up ./utils.c.tv ./utils.c
--- ./utils.c.tv	2018-03-05 03:44:23.000000000 +0100
+++ ./utils.c	2018-03-13 13:30:40.267700212 +0100
@@ -271,7 +271,7 @@ _DumpTreeToFile(Widget w, XtPointer tree
     if ( (fp = fopen((char *)filename, "w")) == NULL ) {
 	char buf[BUFSIZ];
 
-	snprintf(buf, sizeof(buf), res_labels[24], (char *)filename);
+	snprintf(buf, "%s", sizeof(buf), res_labels[24], (char *)filename);
 	SetMessage(global_screen_data.info_label, buf);
 	return;
     }
@@ -518,7 +518,7 @@ HandleGetResources(Event *event)
 			get_event->info[i].widgets.num_widgets);
 
 	if (node == NULL) {
-	    snprintf(buf, sizeof(buf), res_labels[16]);
+	    snprintf(buf, "%s", sizeof(buf), res_labels[16]);
 	    AddString(&errors, buf);
 	    continue;
 	}