socsvn commit: r240500 - in soc2012/jhagewood: diff sdiff
jhagewood at FreeBSD.org
jhagewood at FreeBSD.org
Sat Aug 18 17:20:38 UTC 2012
Author: jhagewood
Date: Sat Aug 18 17:20:35 2012
New Revision: 240500
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=240500
Log:
Fixed file decompression
Modified:
soc2012/jhagewood/diff/decompress.c
soc2012/jhagewood/sdiff/decompress.c
Modified: soc2012/jhagewood/diff/decompress.c
==============================================================================
--- soc2012/jhagewood/diff/decompress.c Sat Aug 18 17:18:01 2012 (r240499)
+++ soc2012/jhagewood/diff/decompress.c Sat Aug 18 17:20:35 2012 (r240500)
@@ -69,7 +69,7 @@
int length;
gzFile comprfile;
- file = fopen("./temp", "r+w");
+ file = tmpfile();
comprfile = gzopen(filename, mode);
if (comprfile == Z_NULL)
Modified: soc2012/jhagewood/sdiff/decompress.c
==============================================================================
--- soc2012/jhagewood/sdiff/decompress.c Sat Aug 18 17:18:01 2012 (r240499)
+++ soc2012/jhagewood/sdiff/decompress.c Sat Aug 18 17:20:35 2012 (r240500)
@@ -68,7 +68,7 @@
int length;
gzFile comprfile;
- file = fopen("./temp", "r+w");
+ file = tmpfile();
comprfile = gzopen(filename, mode);
if (comprfile == Z_NULL)
More information about the svn-soc-all
mailing list