summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-14 05:50:44 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-14 05:50:44 +0000
commit34eeb65d14a6d0a7044be4939ca42a67607bc55f (patch)
tree159c5d193385e4f29c3867ef008232dab373768e /ldso
parentc1009c8881176fbc15646fc229f5c773a0795b15 (diff)
Both _dl_simple_ltoa and _dl_simple_ltoahex use buffers of size 21,
but we were feeding them strings that were just 13 bytes long... Thanks to spudmonkey@racsa.co.cr for noticing! -Erik
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/ldso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 0d9df3054..6d8b881e7 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -1179,7 +1179,7 @@ void _dl_dprintf(int fd, const char *fmt, ...)
case 'i':
case 'd':
{
- char tmp[13];
+ char tmp[22];
num = va_arg(args, int);
string = _dl_simple_ltoa(tmp, num);
_dl_write(fd, string, _dl_strlen(string));
@@ -1188,7 +1188,7 @@ void _dl_dprintf(int fd, const char *fmt, ...)
case 'x':
case 'X':
{
- char tmp[13];
+ char tmp[22];
num = va_arg(args, int);
string = _dl_simple_ltoahex(tmp, num);
_dl_write(fd, string, _dl_strlen(string));