[saga] 02/06: errfunc.c: fix bug, refers to bug #191 Missing format strings

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Mon Nov 3 19:43:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch patch-queue/master
in repository saga.

commit b121ce441f68a439027dc5fe0618484744b84c37
Author: Volker Wichmann <wichmann at laserdata.at>
Date:   Sun Sep 28 21:04:30 2014 +0200

    errfunc.c: fix bug, refers to bug #191 Missing format strings
---
 src/modules/grid/grid_filter/geodesic_morph_rec/errfunc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/grid/grid_filter/geodesic_morph_rec/errfunc.c b/src/modules/grid/grid_filter/geodesic_morph_rec/errfunc.c
index 959b37f..d229221 100644
--- a/src/modules/grid/grid_filter/geodesic_morph_rec/errfunc.c
+++ b/src/modules/grid/grid_filter/geodesic_morph_rec/errfunc.c
@@ -225,7 +225,7 @@ void fehler (int zeile,
       cp4 = cp2;
    }
 
-   fprintf (protfile, cp1);
+   fprintf (protfile, "%s", cp1);
 
    if (fil -> art == 'E')
    {
@@ -415,7 +415,7 @@ void error_message (int zeile,
       cp4 = cp2;
    }
 
-   sprintf (fmessage + sl_all, cp1);
+   sprintf (fmessage + sl_all, "%s", cp1);
    sl_all = strlen (fmessage);
    
    sl_alt = strlen (*error_list);
@@ -577,7 +577,7 @@ void fehler2 (int zeile,
 
    va_end (ap);
 
-   fprintf (protfile, cp1);
+   fprintf (protfile, "%s", cp1);
 
    if (fil -> art == 'E')
    {
@@ -756,7 +756,7 @@ void fehler3 (int zeile,
 
    va_end (ap);
 
-   sprintf (fmessage + sl_all, cp1);
+   sprintf (fmessage + sl_all, "%s", cp1);
    sl_all = strlen (fmessage);
    
    sl_alt = strlen (*error_list);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/saga.git



More information about the Pkg-grass-devel mailing list