X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fe0eaf1870d3b992ef3caa8c49c3b22e965ac36b..170cd41489ab25fc3b7a95dd31521dfe522b4f9e:/IkiWiki/Wrapper.pm

diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm
index 583841d6c..69500029c 100644
--- a/IkiWiki/Wrapper.pm
+++ b/IkiWiki/Wrapper.pm
@@ -200,7 +200,7 @@ void addenv(char *var, char *val) {
 }
 
 void set_cgilock_fd (int lockfd) {
-	char *fd_s=malloc(8);
+	char fd_s[12];
 	sprintf(fd_s, "%i", lockfd);
 	if (setenv("IKIWIKI_CGILOCK_FD", fd_s, 1) != 0) {
 		perror("setenv");