From owner-svn-soc-all@FreeBSD.ORG Sat Aug 18 17:20:38 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 4C6FC106564A for ; Sat, 18 Aug 2012 17:20:36 +0000 (UTC) (envelope-from jhagewood@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Sat, 18 Aug 2012 17:20:36 +0000 Date: Sat, 18 Aug 2012 17:20:36 +0000 From: jhagewood@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120818172036.4C6FC106564A@hub.freebsd.org> Cc: Subject: socsvn commit: r240500 - in soc2012/jhagewood: diff sdiff X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 17:20:38 -0000 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)