manage content-encoding
[webserver.git] / webserver.c
index bca0262579bdec1c6ffa686ed7b9d08331f38f28..555afbf704685f985435d073231ae9d3cdba396d 100644 (file)
@@ -157,7 +157,7 @@ int main (int argc, char *argv[])
         VERBOSE (ERROR, PERROR ("Can't read directory (%s)\n", temp));
         return 1;
     }
-    char *ntemp = tempname (temp);
+    char *ntemp = tempname (temp, NULL);
     FILE *ftemp = fopen (ntemp, "w");
     if (ftemp == NULL) {
         VERBOSE (ERROR, PERROR ("Can't write temporary file (%s)\n", ntemp));