public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Unterminated string
@ 2002-08-25 14:19 Andreas Schwab
  2002-08-25 14:53 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2002-08-25 14:19 UTC (permalink / raw)
  To: libc-hacker

2002-08-25  Andreas Schwab  <schwab@suse.de>

	* elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.

--- elf/dl-reloc.c.~1.64.2.2.~	2002-04-15 15:15:05.000000000 +0200
+++ elf/dl-reloc.c	2002-08-25 23:18:13.000000000 +0200
@@ -216,7 +216,8 @@ _dl_reloc_bad_type (struct link_map *map
 
   cp = __stpcpy (msgbuf, msg[plt]);
   *cp++ = DIGIT (type >> 4);
-  *cp = DIGIT (type);
+  *cp++ = DIGIT (type);
+  *cp = 0;
 
   _dl_signal_error (0, map->l_name, NULL, msgbuf);
 }

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unterminated string
  2002-08-25 14:19 Unterminated string Andreas Schwab
@ 2002-08-25 14:53 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2002-08-25 14:53 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-hacker

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Schwab wrote:
> 2002-08-25  Andreas Schwab  <schwab@suse.de>
> 
> 	* elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.

Applied.  Thanks,

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9aVHZ2ijCOnn/RHQRAjZ+AJ9vk5vxsyR27/b43+SEPxnXes7NNwCfT2rl
uboqByNnxCP0a6YanuD7vYE=
=KuRo
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-25 21:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-25 14:19 Unterminated string Andreas Schwab
2002-08-25 14:53 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).