]> code.citadel.org Git - citadel.git/blobdiff - citadel/setup.c
* Eliminated the use of tmpnam() to shut up the compiler warnings.
[citadel.git] / citadel / setup.c
index 2cf23500528dec6f04d6e24ca7fe7cdc16ed3e4a..7d4edbc206215ee18cc24c0289930e37e18d0360 100644 (file)
@@ -718,7 +718,7 @@ void strprompt(char *prompt_title, char *prompt_text, char *str)
 #endif
        char buf[SIZ];
        char setupmsg[SIZ];
-       char *dialog_result;
+       char dialog_result[PATH_MAX];
        FILE *fp = NULL;
 
        strcpy(setupmsg, "");
@@ -736,7 +736,7 @@ void strprompt(char *prompt_title, char *prompt_text, 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"),
                        prompt_title,