No spaces in temp file names
authorArt Cancro <ajc@citadel.org>
Tue, 5 Feb 2008 21:52:03 +0000 (21:52 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 5 Feb 2008 21:52:03 +0000 (21:52 +0000)
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()
                );