summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-06 01:27:13 +0100
committerMichael Adam <obnox@samba.org>2009-12-06 01:55:53 +0100
commit5e399a7e17bb8d719005f18d8d77f62993c6de7d (patch)
treeb51a3a06445dd2d0a5f315ee93bfef6f806a70d3 /src/main.c
parent0480185d07649aa063210e1c50ca4da884bc11e9 (diff)
downloadtinyproxy-5e399a7e17bb8d719005f18d8d77f62993c6de7d.tar.gz
tinyproxy-5e399a7e17bb8d719005f18d8d77f62993c6de7d.zip
main: use safestrdup instead of strdup in process_cmdline
Michael
Diffstat (limited to '')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index abf52f9..5967778 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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) {