no need to add XXXes to mkstemp() call, g/c this patch in an efford

to minimize number of PHP patches in pkgsrc
This commit is contained in:
jdolecek 2004-02-14 00:46:26 +00:00
parent 6f27874b98
commit dff21e3211

View file

@ -1,12 +0,0 @@
$NetBSD: patch-ae,v 1.5 2003/09/01 10:17:38 cjep Exp $
--- main/php_open_temporary_file.c.orig 2003-08-30 21:45:02.000000000 +0200
+++ main/php_open_temporary_file.c 2003-08-30 21:45:13.000000000 +0200
@@ -132,7 +132,7 @@
trailing_slash = "/";
}
- (void)snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", path, trailing_slash, pfx);
+ (void)snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXXXXXX", path, trailing_slash, pfx);
#ifdef PHP_WIN32
if (GetTempFileName(path, pfx, 0, opened_path)) {