Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Terminate correct buffer.
Little typo could cause additional characters to be printed.
  • Loading branch information
Ulrich Drepper committed Jun 3, 2009
1 parent 8275067 commit fbb04b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2009-06-03 Ulrich Drepper <drepper@redhat.com>

* elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.

2009-06-02 Ulrich Drepper <drepper@redhat.com>

[BZ #10221]
Expand Down
2 changes: 1 addition & 1 deletion elf/dl-sysdep.c
Expand Up @@ -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,
Expand Down

0 comments on commit fbb04b3

Please sign in to comment.