Sisyphus repository
Last update: 12 august 2022 | SRPMs: 17595 | Visits: 24760950
en ru br
ALT Linux repos
S:2.7.0-alt1
5.0: 2.1.0-alt1
4.1: 1.0.1-alt1.1
4.0: 1.0.1-alt1.1
3.0: 1.0.1-alt1

Other repositories
Upstream:2.0.1

Group :: Graphics
RPM: gerbv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: gerbv-2.7.0-Fix-Werror-format-security-problem.patch
Download


diff --git a/src/drill_stats.c b/src/drill_stats.c
index de3897e..6266742 100644
--- a/src/drill_stats.c
+++ b/src/drill_stats.c
@@ -178,7 +178,7 @@ gerbv_drill_stats_add_layer(gerbv_drill_stats_t *accum_stats,
     for (error = input_stats->error_list; error != NULL; error = error->next) {
 	if (error->error_text != NULL)
 	    gerbv_stats_printf(accum_stats->error_list, error->type,
-		    this_layer, error->error_text);
+		    this_layer, "%s", error->error_text);
     }
 
     /* ==== Now deal with the misc header stuff ==== */
@@ -210,7 +210,7 @@ gerbv_drill_stats_add_layer(gerbv_drill_stats_t *accum_stats,
 	 error = error->next) {
 	if (error->error_text != NULL) {
 	    gerbv_stats_printf(accum_stats->error_list, error->type,
-			    this_layer, error->error_text);
+			    this_layer, "%s", error->error_text);
 	}
     }
 
diff --git a/src/gerb_image.c b/src/gerb_image.c
index 9c5207f..5e66e73 100644
--- a/src/gerb_image.c
+++ b/src/gerb_image.c
@@ -295,7 +295,7 @@ gerbv_image_dump(gerbv_image_t const* image)
     while (net){
 	printf(_("(%f,%f)->(%f,%f) with %d ("), net->start_x, net->start_y,
 	       net->stop_x, net->stop_y, net->aperture);
-	printf(_(gerbv_interpolation_name(net->interpolation)));
+	printf("%s", _(gerbv_interpolation_name(net->interpolation)));
 	gerbv_image_aperture_state(net->aperture_state);
 	printf(")\n");
 	net = net->next;
diff --git a/src/gerbv.c b/src/gerbv.c
index ce86b38..26d0b43 100644
--- a/src/gerbv.c
+++ b/src/gerbv.c
@@ -560,8 +560,8 @@ gerbv_open_image(gerbv_project_t *gerbvProject, char *filename, int idx, int rel
     } else if (gerber_is_rs274d_p(fd)) {
 	gchar *str = g_strdup_printf(_("Most likely found a RS-274D file "
 			"\"%s\" ... trying to open anyways\n"), filename);
-	dprintf(str);
-	g_warning(str);
+	dprintf("%s", str);
+	g_warning("%s", str);
 	g_free (str);
 
 	if (!foundBinary || forceLoadFile) {
diff --git a/src/interface.c b/src/interface.c
index b610f02..feeef13 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -75,7 +75,7 @@ rename_main_window(char const* filename, GtkWidget *main_win)
 		g_string_printf(win_title, "%s — Gerbv", basename);
 		g_free(basename);
 	} else {
-		g_string_printf(win_title, _(gerbv_win_title));
+		g_string_printf(win_title, "%s", _(gerbv_win_title));
 	}
 
 	gtk_window_set_title(GTK_WINDOW(win), win_title->str);
-- 
2.20.1
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin