[mot-adms] add mot-adms-format-security.patch
Peter Robinson
pbrobinson at fedoraproject.org
Sun Jul 20 15:39:46 UTC 2014
commit 4f1ed71571c93b46ee71bef893402768483e172d
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Sun Jul 20 16:39:29 2014 +0100
add mot-adms-format-security.patch
mot-adms-format-security.patch | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/mot-adms-format-security.patch b/mot-adms-format-security.patch
new file mode 100644
index 0000000..943d482
--- /dev/null
+++ b/mot-adms-format-security.patch
@@ -0,0 +1,11 @@
+--- adms-2.3.2/admsXml/preprocessorLex.l.orig 2014-07-20 15:39:43.139480510 +0100
++++ adms-2.3.2/admsXml/preprocessorLex.l 2014-07-20 15:40:34.816289041 +0100
+@@ -85,7 +85,7 @@
+ static void adms_file_fprintf ( char *filename, const char *filedata)
+ {
+ FILE *ofh = fopen (filename,"w");
+- if (fprintf (ofh, filedata)==EOF)
++ if (fprintf ("%s", ofh, filedata)==EOF)
+ adms_message_fatal(("%s: cannot write file\n", filename))
+ fclose (ofh);
+ }
More information about the scm-commits
mailing list