From f6fe58268bc9c4f6a4fedbc3b9e91a924c1b1584 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Aug 2002 21:52:49 +0000 Subject: (_dl_reloc_bad_type): Nul-terminate message. --- elf/dl-reloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elf/dl-reloc.c') 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); } -- cgit v1.2.3