summary refs log tree commit diff
path: root/elf/dl-reloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-25 21:52:49 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-25 21:52:49 +0000
commitf6fe58268bc9c4f6a4fedbc3b9e91a924c1b1584 (patch)
tree5a9f2f683d9c2e1d17f467f3ee40bbd7622d1406 /elf/dl-reloc.c
parent6ce3881de539b0a76673da3ea6fdac7453b47910 (diff)
downloadglibc-f6fe58268bc9c4f6a4fedbc3b9e91a924c1b1584.tar.gz
glibc-f6fe58268bc9c4f6a4fedbc3b9e91a924c1b1584.tar.xz
glibc-f6fe58268bc9c4f6a4fedbc3b9e91a924c1b1584.zip
(_dl_reloc_bad_type): Nul-terminate message.
Diffstat (limited to 'elf/dl-reloc.c')
-rw-r--r--elf/dl-reloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index e5fbb440a5..37d1ee019f 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -223,7 +223,8 @@ _dl_reloc_bad_type (struct link_map *map, unsigned int type, int plt)
 
   cp = __stpcpy (msgbuf, msg[plt]);
   *cp++ = DIGIT (type >> 4);
-  *cp = DIGIT (type);
+  *cp++ = DIGIT (type);
+  *cp = '\0';
 
   INTUSE(_dl_signal_error) (0, map->l_name, NULL, msgbuf);
 }