summaryrefslogtreecommitdiff
authorColin Guthrie <cguthrie@mandriva.org>2008-12-16 22:44:27 (GMT)
committer Adam Jackson <ajax@redhat.com>2008-12-16 22:44:27 (GMT)
commit6d8ea5104cf97dbf64612f58fc06f94f869ed5ec (patch) (side-by-side diff)
tree6ea5b9407cca755e218bfe7e7778f5fe3baf8bee
parent1bb5a919f4bf38ac96c73077021b0cdc82965f31 (diff)
downloadxserver-6d8ea5104cf97dbf64612f58fc06f94f869ed5ec.zip
xserver-6d8ea5104cf97dbf64612f58fc06f94f869ed5ec.tar.gz
Fix compilation with -Werror=format-security
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--os/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/log.c b/os/log.c
index 351090c..b01965a 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