$OpenBSD: patch-main_php_open_temporary_file_c,v 1.1.1.1 2013/08/07 16:35:46 robert Exp $
--- main/php_open_temporary_file.c.orig.port	Sun Feb  7 20:15:58 2010
+++ main/php_open_temporary_file.c	Sat Jun 18 12:14:52 2011
@@ -138,7 +138,7 @@ static int php_do_open_temporary_file(const char *path
 		trailing_slash = "/";
 	}
 
-	if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
+	if (spprintf(&opened_path, 0, "%s%s%sXXXXXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
 		efree(opened_path);
 		free(new_state.cwd);
 		return -1;
