]> code.citadel.org Git - citadel.git/blobdiff - webcit/setup.c
* Eliminated the use of tmpnam() to shut up compiler warnings.
[citadel.git] / webcit / setup.c
index b08e4b89aef506dbed980e653d00f23e5120b3cd..cfdc7a9c4079785d04e8e51d5d01cb43d3c52f5d 100644 (file)
@@ -231,7 +231,7 @@ void set_value(char *prompt, char str[])
        int i;
 #endif
        char buf[SIZ];
-       char *dialog_result;
+       char dialog_result[PATH_MAX];
        char setupmsg[SIZ];
        FILE *fp;
 
@@ -250,7 +250,7 @@ void set_value(char *prompt, char str[])
                break;
 
        case UI_DIALOG:
-               dialog_result = tmpnam(NULL);
+               CtdlMakeTempFileName(dialog_result, sizeof dialog_result);
                sprintf(buf, "exec %s --backtitle '%s' --inputbox '%s' 19 72 '%s' 2>%s",
                        getenv("CTDL_DIALOG"),
                        "WebCit setup",