mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
drop use of strerror()
It isn't thread-safe. Use the %m conversion specifier instead, like the rest of the code already does.
This commit is contained in:
parent
bb6e48b1b0
commit
cadd999292
2 changed files with 2 additions and 2 deletions
|
|
@ -1086,7 +1086,7 @@ int main(int argc, char *argv[])
|
|||
buf = XML_GetBuffer(ctx.parser, XML_BUFFER_SIZE);
|
||||
len = fread(buf, 1, XML_BUFFER_SIZE, stdin);
|
||||
if (len < 0) {
|
||||
fprintf(stderr, "fread: %s\n", strerror(errno));
|
||||
fprintf(stderr, "fread: %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
XML_ParseBuffer(ctx.parser, len, len == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue