[uClibc-cvs] svn commit: trunk/uClibc/ldso/ldso

vapier at uclibc.org vapier at uclibc.org
Sat Jul 9 00:32:46 UTC 2005


Author: vapier
Date: 2005-07-08 18:32:45 -0600 (Fri, 08 Jul 2005)
New Revision: 10766

Log:
make sure we use long instead of int so we dont truncate 64bit values

Modified:
   trunk/uClibc/ldso/ldso/dl-elf.c


Changeset:
Modified: trunk/uClibc/ldso/ldso/dl-elf.c
===================================================================
--- trunk/uClibc/ldso/ldso/dl-elf.c	2005-07-09 00:31:31 UTC (rev 10765)
+++ trunk/uClibc/ldso/ldso/dl-elf.c	2005-07-09 00:32:45 UTC (rev 10766)
@@ -782,7 +782,7 @@
 /* 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 @@
 				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 @@
 				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));




More information about the uClibc-cvs mailing list