Date: Sat, 18 Aug 2012 17:20:36 +0000 From: jhagewood@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r240500 - in soc2012/jhagewood: diff sdiff Message-ID: <20120818172036.4C6FC106564A@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120818172036.4C6FC106564A>