Fix compilation with -Werror=format-security

This commit is contained in:
Colin Guthrie 2008-12-16 17:44:27 -05:00 committed by Adam Jackson
parent 1bb5a919f4
commit 6d8ea5104c

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