make it compile on alpha again
This commit is contained in:
parent
ce9c7e7f4b
commit
01a0ec6ced
@ -1024,7 +1024,8 @@ expand_syslog_m(const char *fmt, char **newfmt) {
|
|||||||
p = strdup("");
|
p = strdup("");
|
||||||
str = fmt;
|
str = fmt;
|
||||||
while ((m = strstr(str, "%m")) != NULL) {
|
while ((m = strstr(str, "%m")) != NULL) {
|
||||||
asprintf(&np, "%s%.*s%s", p, m - str, str, strerror(errno));
|
asprintf(&np, "%s%.*s%s", p, (int)(m - str),
|
||||||
|
str, strerror(errno));
|
||||||
free(p);
|
free(p);
|
||||||
if (np == NULL) {
|
if (np == NULL) {
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user