main: use safestrdup instead of strdup in process_cmdline

Michael
This commit is contained in:
Michael Adam 2009-12-06 01:27:13 +01:00
parent 0480185d07
commit 5e399a7e17

View File

@ -353,7 +353,7 @@ main (int argc, char **argv)
if (!config.stathost) {
log_message (LOG_INFO, "Setting stathost to \"%s\".",
TINYPROXY_STATHOST);
config.stathost = strdup (TINYPROXY_STATHOST);
config.stathost = safestrdup (TINYPROXY_STATHOST);
}
if (!config.user) {