From 01a0ec6ced99a7e59e6e9c7424cadef3935d83e5 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Thu, 5 Jul 2001 16:53:49 +0000 Subject: [PATCH] make it compile on alpha again --- usr.sbin/rarpd/rarpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index e32b85b777ec..b0d999eae694 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -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;