diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2008-12-16 17:44:27 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-12-16 17:44:27 -0500 |
commit | 6d8ea5104cf97dbf64612f58fc06f94f869ed5ec (patch) | |
tree | 6ea5b9407cca755e218bfe7e7778f5fe3baf8bee /os/log.c | |
parent | 1bb5a919f4bf38ac96c73077021b0cdc82965f31 (diff) |
Fix compilation with -Werror=format-security
Diffstat (limited to 'os/log.c')
-rw-r--r-- | os/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |