kmodloader: modprobe: skip possible command line arguments
[project/ubox.git] / log / syslog.c
index a596b48..ac4f1ae 100644 (file)
@@ -66,7 +66,7 @@ log_add(char *buf, int size, int source)
 
        /* bounce out if we don't have init'ed yet (regmatch etc will blow) */
        if (!log) {
-               fprintf(stderr, buf);
+               fprintf(stderr, "%s", buf);
                return;
        }
 
@@ -300,4 +300,6 @@ log_shutdown(void)
        close(slog.fd.fd);
        close(klog.fd.fd);
        free(log);
+       regfree(&pat_prio);
+       regfree(&pat_tstamp);
 }