]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_reloc_bad_type): Nul-terminate message.
authorUlrich Drepper <drepper@redhat.com>
Sun, 25 Aug 2002 21:52:49 +0000 (21:52 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 25 Aug 2002 21:52:49 +0000 (21:52 +0000)
elf/dl-reloc.c

index e5fbb440a50d521a3811f86cf8c7c4d13f3313be..37d1ee019f75cc39a3d9cc46e7d7a963d65a919c 100644 (file)
@@ -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);
 }