$OpenBSD: patch-main_php_open_temporary_file_c,v 1.3 2011/06/18 19:49:50 sthen Exp $
--- main/php_open_temporary_file.c.orig.port	Sun Jan  3 09:23:27 2010
+++ main/php_open_temporary_file.c	Sat Jun 18 12:44:57 2011
@@ -131,7 +131,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;
