You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/flow-tools/files/flow-tools-0.68.5.1-syslog....

48 lines
979 B

--- a/lib/fterr.c
+++ b/lib/fterr.c
@@ -112,7 +112,7 @@
fprintf(((fterr_file) ? fterr_file : stderr), "%s\n", buf2);
if (fterr_flags & FTERR_SYSLOG)
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
} /* fterr_info */
@@ -134,7 +134,7 @@
if (fterr_flags & FTERR_SYSLOG) {
snprintf(buf2, 1024, "%s: %s", buf, strerror(errno));
- syslog(LOG_INFO, buf2);
+ syslog(LOG_INFO, "%s", buf2);
}
if (fterr_exit)
@@ -159,7 +159,7 @@
}
if (fterr_flags & FTERR_SYSLOG)
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
if (fterr_exit)
fterr_exit(code);
@@ -183,7 +183,7 @@
}
if (fterr_flags & FTERR_SYSLOG)
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
} /* fterr_warnx */
@@ -205,7 +205,7 @@
if (fterr_flags & FTERR_SYSLOG) {
snprintf(buf2, 1024, "%s: %s", buf, strerror(errno));
- syslog(LOG_INFO, buf2);
+ syslog(LOG_INFO, "%s", buf2);
}
} /* fterr_warn */