]> git.ipfire.org Git - people/ms/dma.git/commitdiff
setlogident: openlog() wants a static variable
authorSimon Schubert <2@0x2c.org>
Sun, 31 Oct 2010 15:54:20 +0000 (16:54 +0100)
committerSimon Schubert <2@0x2c.org>
Sun, 31 Oct 2010 17:33:16 +0000 (18:33 +0100)
util.c

diff --git a/util.c b/util.c
index 46619d7ced7432c51c462134f2e50f7ca68323f7..86312eb1fef25212115e23b1ceb39bae90c0fe47 100644 (file)
--- 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) {