freebsd-ports/graphics/urt/files/patch-tools-rlecat.c
Pav Lucistnik c42f3b8f1c - Fix for gif2rle (from BRLCAD)
- misc. fixes from the SGI port
- some other warning cleanups and remove a check that was not serving any purpose

PR:		ports/118344
Submitted by:	Pedro F. Giffuni <giffunip@tutopia.com>
2007-12-15 19:53:24 +00:00

20 lines
555 B
C

--- tools/rlecat.c.orig Thu Nov 29 16:39:51 2007
+++ tools/rlecat.c Thu Nov 29 16:40:44 2007
@@ -62,7 +62,7 @@
* repeat count. If the collation flag (-c) is specified, then
* all images will be read before starting to repeat.
*/
-void
+int
main( argc, argv )
int argc;
char **argv;
@@ -110,7 +110,7 @@
nflag = 0; /* Not really repeating! */
else
{
- mktemp( temp ); /* Make a temporary file name */
+ mkstemp( temp ); /* Make a temporary file name */
tmpfile = rle_open_f( cmd_name( argv ), temp, "w+" );
}
}