* if TZ environment variable is unset, set UTC, so valgrind finaly shuts up on all our date/time printing functions.
/** Got everything; let's go */
/** First, change to UTC */
if (getenv("TZ"))
- sprintf(tz, "TZ=%s", getenv("TZ"));
+ snprintf(tz, 256, "TZ=%s", getenv("TZ"));
else
strcpy(tz, "TZ=");
putenv("TZ=UTC");
strcpy(uds_listen_path, "");
+ if (getenv("TZ") == NULL)
+ putenv("TZ=UTC");
+
/** Parse command line */
#ifdef HAVE_OPENSSL
while ((a = getopt(argc, argv, "h:i:p:t:x:dD:cfs")) != EOF)