From: Ulrich Drepper Date: Wed, 3 Jun 2009 15:30:35 +0000 (-0700) Subject: Terminate correct buffer. X-Git-Tag: fedora/glibc-2.10.90-1~8^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbb04b35e7997070feec74e0fd46953faef71f9e;p=thirdparty%2Fglibc.git Terminate correct buffer. Little typo could cause additional characters to be printed. --- diff --git a/ChangeLog b/ChangeLog index 7d30b3a15c8..5e98327e146 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-06-03 Ulrich Drepper + + * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string. + 2009-06-02 Ulrich Drepper [BZ #10221] diff --git a/elf/dl-sysdep.c b/elf/dl-sysdep.c index db1001253c5..5700272f10c 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,