diff options
Diffstat (limited to 'sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch')
-rw-r--r-- | sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch b/sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch new file mode 100644 index 000000000000..fe4d37b3009c --- /dev/null +++ b/sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch @@ -0,0 +1,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; + } + } |