aboutsummaryrefslogtreecommitdiff
path: root/misc/syslog.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-12 18:45:49 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-12 18:45:49 +0000
commitccc63b07082c257ffc6fe0b0bbf770283bb44e98 (patch)
tree4fe19a84b02141ca49ed9a9a1536be08a16bfd2d /misc/syslog.c
parent9ad684229e7cf2f0b3c6068b2122701d167a5794 (diff)
downloadglibc-ccc63b07082c257ffc6fe0b0bbf770283bb44e98.tar
glibc-ccc63b07082c257ffc6fe0b0bbf770283bb44e98.tar.gz
glibc-ccc63b07082c257ffc6fe0b0bbf770283bb44e98.tar.bz2
glibc-ccc63b07082c257ffc6fe0b0bbf770283bb44e98.zip
[BZ #365]
Update. * misc/syslog.c (vsyslog): Fix copying of PID in case of out-of-memory situation. [BZ #365]. * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of __THROW in inline function definitions.
Diffstat (limited to 'misc/syslog.c')
-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;