summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-09 00:32:45 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-09 00:32:45 +0000
commit911e3b1d977a3e6d5ad28835bdafe4fd68e595a3 (patch)
tree9ef13a9bca8c0ef6f259ef1fe0fcb3127e371c74
parent0fba5565bab74cb7f8547272f35f162a26eac2ba (diff)
make sure we use long instead of int so we dont truncate 64bit values
-rw-r--r--ldso/ldso/dl-elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index bf0e1bb03..a469ddfd8 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -782,7 +782,7 @@ int _dl_fixup(struct dyn_elf *rpnt, int now_flag)
/* Minimal printf which handles only %s, %d, and %x */
void _dl_dprintf(int fd, const char *fmt, ...)
{
- int num;
+ long num;
va_list args;
char *start, *ptr, *string;
static char *buf;
@@ -830,7 +830,7 @@ void _dl_dprintf(int fd, const char *fmt, ...)
case 'd':
{
char tmp[22];
- num = va_arg(args, int);
+ num = va_arg(args, long);
string = _dl_simple_ltoa(tmp, num);
_dl_write(fd, string, _dl_strlen(string));
@@ -840,7 +840,7 @@ void _dl_dprintf(int fd, const char *fmt, ...)
case 'X':
{
char tmp[22];
- num = va_arg(args, int);
+ num = va_arg(args, long);
string = _dl_simple_ltoahex(tmp, num);
_dl_write(fd, string, _dl_strlen(string));