From: Simon Schubert <2@0x2c.org> Date: Sun, 31 Oct 2010 15:54:20 +0000 (+0100) Subject: setlogident: openlog() wants a static variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42916656966e9c8dff074e8788878f376ee3439c;p=people%2Fms%2Fdma.git setlogident: openlog() wants a static variable --- diff --git a/util.c b/util.c index 46619d7..86312eb 100644 --- a/util.c +++ b/util.c @@ -115,7 +115,7 @@ local: void setlogident(const char *fmt, ...) { - char tag[50]; + static char tag[50]; snprintf(tag, sizeof(tag), "%s", logident_base); if (fmt != NULL) {