Get rid of warnings when compiled with -Wformat-security

Change-Id: I27e0819aba347e26051ad771c594b69700da1721
gugelfrei
Nick Kralevich 14 years ago
parent 1a06edaf4d
commit f69b3b9af7

@ -51,7 +51,7 @@ int parent(const char *tag, int parent_read) {
if (a == 0 && b == sizeof(buffer) - 1) {
// buffer is full, flush
buffer[b] = '\0';
LOG(LOG_INFO, tag, &buffer[a]);
LOG(LOG_INFO, tag, "%s", &buffer[a]);
b = 0;
} else if (a != b) {
// Keep left-overs
@ -67,7 +67,7 @@ int parent(const char *tag, int parent_read) {
// Flush remaining data
if (a != b) {
buffer[b] = '\0';
LOG(LOG_INFO, tag, &buffer[a]);
LOG(LOG_INFO, tag, "%s", &buffer[a]);
}
status = 0xAAAA;
if (wait(&status) != -1) { // Wait for child

Loading…
Cancel
Save