$OpenBSD: patch-main_php_open_temporary_file_c,v 1.2 2006/10/21 11:44:10 robert Exp $
--- main/php_open_temporary_file.c.orig	Wed May 24 01:22:26 2006
+++ main/php_open_temporary_file.c	Fri Aug 18 21:15:57 2006
@@ -120,7 +120,7 @@
 		trailing_slash = "/";
 	}
 
-	if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", path, trailing_slash, pfx) >= MAXPATHLEN) {
+	if (spprintf(&opened_path, 0, "%s%s%sXXXXXXXXXX", path, trailing_slash, pfx) >= MAXPATHLEN) {
 		efree(opened_path);
 		return -1;
 	}
