make it compile on alpha again

This commit is contained in:
Matt Jacob 2001-07-05 16:53:49 +00:00
parent ce9c7e7f4b
commit 01a0ec6ced

View File

@ -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;