ports/converters/mpack/files/patch-unixpk_c
Andrey A. Chernov b2ba8b886d Yet another overflow check, better temp file name & misc cleanups
Submitted by: kris & Debian (edited by me)
2003-06-14 04:41:50 +00:00

12 lines
338 B
Text

$OpenBSD: patch-unixpk_c,v 1.1 2002/08/09 01:15:19 naddy Exp $
--- unixpk.c.orig Thu Feb 16 22:39:50 1995
+++ unixpk.c Mon Aug 5 12:30:30 2002
@@ -165,7 +165,7 @@ char **argv;
strcpy(fnamebuf, "/tmp");
}
strcat(fnamebuf, "/mpackXXXXXX");
- mktemp(fnamebuf);
+ close(mkstemp(fnamebuf));
outfname = strsave(fnamebuf);
}