aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-sysdep.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-03 08:30:35 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-03 08:30:35 -0700
commitfbb04b35e7997070feec74e0fd46953faef71f9e (patch)
treeda01b9d224a79064462b4cffc1d05e36c4fd559d /elf/dl-sysdep.c
parent8275067de1b6b94d88047e12095872541fa40ffd (diff)
downloadglibc-fbb04b35e7997070feec74e0fd46953faef71f9e.zip
glibc-fbb04b35e7997070feec74e0fd46953faef71f9e.tar.gz
glibc-fbb04b35e7997070feec74e0fd46953faef71f9e.tar.bz2
Terminate correct buffer.
Little typo could cause additional characters to be printed.
Diffstat (limited to 'elf/dl-sysdep.c')
-rw-r--r--elf/dl-sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-sysdep.c b/elf/dl-sysdep.c
index db10012..5700272 100644
--- a/elf/dl-sysdep.c
+++ b/elf/dl-sysdep.c
@@ -335,7 +335,7 @@ _dl_show_auxv (void)
/* Unknown value: print a generic line. */
char buf2[17];
- buf[sizeof (buf2) - 1] = '\0';
+ buf2[sizeof (buf2) - 1] = '\0';
const char *val2 = _itoa ((unsigned long int) av->a_un.a_val,
buf2 + sizeof buf2 - 1, 16, 0);
const char *val = _itoa ((unsigned long int) av->a_type,