nixpkgs-suyu/pkgs/applications/science/electronics/magic-vlsi/0002-fix-format-security.patch
2020-04-27 00:13:59 -07:00

19 lines
491 B
Diff

diff --git a/database/DBio.c b/database/DBio.c
index 93c4b0b..292ea5f 100644
--- a/database/DBio.c
+++ b/database/DBio.c
@@ -2378,12 +2378,12 @@ DBCellWriteFile(cellDef, f)
#define FPRINTF(f,s)\
{\
- if (fprintf(f,s) == EOF) goto ioerror;\
+ if (fprintf(f,"%s",s) == EOF) goto ioerror;\
DBFileOffset += strlen(s);\
}
#define FPRINTR(f,s)\
{\
- if (fprintf(f,s) == EOF) return 1;\
+ if (fprintf(f,"%s",s) == EOF) return 1;\
DBFileOffset += strlen(s);\
}