[adms] 17/20: fix print statement.

felix salfelder felix-guest at moszumanska.debian.org
Fri May 9 19:40:34 UTC 2014


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

felix-guest pushed a commit to branch unstable
in repository adms.

commit 1f1322e64f8997e0cf8c1b6e42c6c702a33cbc70
Author: Felix Salfelder <felix at salfelder.org>
Date:   Fri May 9 21:23:56 2014 +0200

    fix print statement.
    
    (twice, as autogenerated file is checked in.)
---
 admsXml/preprocessorLex.c | 2 +-
 admsXml/preprocessorLex.l | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/admsXml/preprocessorLex.c b/admsXml/preprocessorLex.c
index cb3b2c0..86eb21b 100644
--- a/admsXml/preprocessorLex.c
+++ b/admsXml/preprocessorLex.c
@@ -877,7 +877,7 @@ void preprocessorerror (const char *message)
 static void adms_file_fprintf ( char *filename, const char *filedata)
 {
   FILE *ofh = fopen (filename,"w");
-  if (fprintf (ofh, filedata)==EOF)
+  if (fprintf (ofh, "%s", filedata)==EOF)
     adms_message_fatal(("%s: cannot write file\n", filename))
   fclose (ofh);
 }
diff --git a/admsXml/preprocessorLex.l b/admsXml/preprocessorLex.l
index 5b35f08..00564dc 100644
--- a/admsXml/preprocessorLex.l
+++ b/admsXml/preprocessorLex.l
@@ -82,7 +82,7 @@ void preprocessorerror (const char *message)
 static void adms_file_fprintf ( char *filename, const char *filedata)
 {
   FILE *ofh = fopen (filename,"w");
-  if (fprintf (ofh, filedata)==EOF)
+  if (fprintf (ofh, "%s", filedata)==EOF)
     adms_message_fatal(("%s: cannot write file\n", filename))
   fclose (ofh);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/adms.git



More information about the debian-science-commits mailing list