summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2008-12-16 17:44:27 -0500
committerAdam Jackson <ajax@redhat.com>2008-12-16 17:44:27 -0500
commit6d8ea5104cf97dbf64612f58fc06f94f869ed5ec (patch)
tree6ea5b9407cca755e218bfe7e7778f5fe3baf8bee /os
parent1bb5a919f4bf38ac96c73077021b0cdc82965f31 (diff)
Fix compilation with -Werror=format-security
Diffstat (limited to 'os')
-rw-r--r--os/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/log.c b/os/log.c
index 351090cdc..b01965a17 100644
--- a/os/log.c
+++ b/os/log.c
@@ -572,9 +572,10 @@ Error(char *str)
return;
sprintf(err, "%s: ", str);
strcat(err, strerror(saveErrno));
- LogWrite(-1, err);
+ LogWrite(-1, "%s", err);
+ free(err);
} else
- LogWrite(-1, strerror(saveErrno));
+ LogWrite(-1, "%s", strerror(saveErrno));
}
void