aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/syslog.c b/misc/syslog.c
index 0ba351781f..38d5a8e5f5 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -175,7 +175,7 @@ vsyslog(pri, fmt, ap)
*--nump = '0' + pid % 10;
while ((pid /= 10) != 0);
- endp = __mempcpy (endp, nump, (nump + sizeof (numbuf)) - nump);
+ endp = __mempcpy (endp, nump, (numbuf + sizeof (numbuf)) - nump);
*endp++ = ']';
*endp = '\0';
buf = failbuf;