From 1760657093eb92b3f3961c6d6350dea787621594 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Thu, 25 Nov 2021 12:54:54 +0100 Subject: [PATCH] d/p/gpsmon-gpsmon.c-Fix-silly-warning.patch: fix FTFBS (Closes: #997178) Signed-off-by: Christian Ehrhardt --- .../gpsmon-gpsmon.c-Fix-silly-warning.patch | 32 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 33 insertions(+) create mode 100644 debian/patches/gpsmon-gpsmon.c-Fix-silly-warning.patch diff --git a/debian/patches/gpsmon-gpsmon.c-Fix-silly-warning.patch b/debian/patches/gpsmon-gpsmon.c-Fix-silly-warning.patch new file mode 100644 index 000000000..3b18fccb6 --- /dev/null +++ b/debian/patches/gpsmon-gpsmon.c-Fix-silly-warning.patch @@ -0,0 +1,32 @@ +From 283fc17de89f666d16b8cef45e7b8ecd602927cf Mon Sep 17 00:00:00 2001 +From: "Gary E. Miller" +Date: Fri, 10 Sep 2021 18:07:20 -0700 +Subject: [PATCH] gpsmon/gpsmon.c: Fix silly warning. + +gpsd-3.23.1~dev/gpsmon/gpsmon.c:458:27: error: format string is not a string +literal (potentially insecure) [-Werror,-Wformat-security] + +Origin: upstream, https://gitlab.com/gpsd/gpsd/-/commit/283fc17de8 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997178 +Last-Update: 2021-11-25 + +--- + gpsmon/gpsmon.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gpsmon/gpsmon.c b/gpsmon/gpsmon.c +index 7f8a949be..832d2e3c4 100644 +--- a/gpsmon/gpsmon.c ++++ b/gpsmon/gpsmon.c +@@ -455,7 +455,7 @@ static void refresh_cmdwin(void) + { + report_lock(); + (void)wmove(cmdwin, 0, 0); +- (void)wprintw(cmdwin, type_name); ++ (void)wprintw(cmdwin, "%s", type_name); + promptlen = strlen(type_name); + if (fallback != NULL && strcmp(fallback->type_name, type_name) != 0) { + (void)waddch(cmdwin, (chtype)' '); +-- +2.34.0 + diff --git a/debian/patches/series b/debian/patches/series index 8525b95a2..4bdef171a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ full-systemd-support gpsd_hotplug_rules_disable_generic_serial_converters ignore-test-xgps_deps_check +gpsmon-gpsmon.c-Fix-silly-warning.patch -- GitLab