summaryrefslogtreecommitdiff
path: root/sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch
blob: fe4d37b3009c4912718fd9d677b2f599d725661d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Ole Streicher <debian@liska.ath.cx>
Description: Fix -Werror=format-security errors
--- a/src/er_paramutils.c
+++ b/src/er_paramutils.c
@@ -731,7 +731,7 @@
             (void) strcat (tmp, " to ");
             (void) strcat (tmp, er_strutils_dblstr (cpl_parameter_get_range_max_double (p)));
             (void) strcat (tmp, ".\n");
-            cpl_msg_error (er_func, tmp);
+            cpl_msg_error (er_func, "%s", tmp);
 
             cpl_free(tmp);
             return -1;
--- a/src/er_plugin.c
+++ b/src/er_plugin.c
@@ -367,7 +367,7 @@
             if (wer != 0)
                {
                (void) snprintf(estr,(size_t)238,"Expansion of %s failed...",xpath);
-               cpl_msg_error (er_func, estr);
+               cpl_msg_error (er_func, "%s", estr);
                goto dealloc;
                }
             }