[adms] 10/11: fix print statement.
felix salfelder
felix-guest at moszumanska.debian.org
Thu May 15 07:07:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch debian
in repository adms.
commit 648fcc1222614979c049fa6b46ab010082ba325d
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