Fix compilation with -Werror=format-security

(cherry picked from commit 6d8ea5104c)
This commit is contained in:
Colin Guthrie 2008-12-16 17:44:27 -05:00 committed by Keith Packard
parent 8ed4ca2801
commit 053f32d928

View File

@ -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