No spaces in temp file names
[citadel.git] / libcitadel / lib / tools.c
index 606449da1d6ae270244b6b005025b6498e4a5c21..17981796e041b619c4969d33539668e74bac632d 100644 (file)
@@ -820,7 +820,7 @@ void CtdlMakeTempFileName(char *name, int len) {
        int i = 0;
 
        while (i++, i < 100) {
-               snprintf(name, len, "/tmp/ctdl.%4lx.%04x",
+               snprintf(name, len, "/tmp/ctdl.%04lx.%04x",
                        (long)getpid(),
                        rand()
                );