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("");
|
||||
str = fmt;
|
||||
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);
|
||||
if (np == NULL) {
|
||||
errno = ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user