Fix build

../../src/common/capwap_logging.c: In function ‘capwap_logging_printf’:
../../src/common/capwap_logging.c:124:4: error: format not a string literal and no format arguments [-Werror=format-security]
    fprintf(output, prefix);
    ^
This commit is contained in:
Alexis La Goutte 2014-02-15 11:54:47 +01:00
parent 85d32d1197
commit 30f6c9fa9e

View File

@ -121,7 +121,7 @@ void capwap_logging_printf(int level, const char* format, ...) {
if (loggingoutputstdout || loggingoutputstderr) { if (loggingoutputstdout || loggingoutputstderr) {
FILE* output = (loggingoutputstdout ? stdout : stderr); FILE* output = (loggingoutputstdout ? stdout : stderr);
fprintf(output, prefix); fprintf(output, "%s", prefix);
vfprintf(output, format, args); vfprintf(output, format, args);
fprintf(output, "\n"); fprintf(output, "\n");
fflush(output); fflush(output);