Fix compilation with -Werror=format-security
This commit is contained in:
parent
1bb5a919f4
commit
6d8ea5104c
5
os/log.c
5
os/log.c
|
@ -572,9 +572,10 @@ Error(char *str)
|
||||||
return;
|
return;
|
||||||
sprintf(err, "%s: ", str);
|
sprintf(err, "%s: ", str);
|
||||||
strcat(err, strerror(saveErrno));
|
strcat(err, strerror(saveErrno));
|
||||||
LogWrite(-1, err);
|
LogWrite(-1, "%s", err);
|
||||||
|
free(err);
|
||||||
} else
|
} else
|
||||||
LogWrite(-1, strerror(saveErrno));
|
LogWrite(-1, "%s", strerror(saveErrno));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user