mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-02 20:30:10 +01:00
Fix compilation with -Werror=format-security
This commit is contained in:
parent
1bb5a919f4
commit
6d8ea5104c
1 changed files with 3 additions and 2 deletions
5
os/log.c
5
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue