about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
 }