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

vapier at uclibc.org vapier at uclibc.org
Mon Jul 11 22:04:58 UTC 2005


Author: vapier
Date: 2005-07-11 16:04:57 -0600 (Mon, 11 Jul 2005)
New Revision: 10786

Log:
make sure the SEND_NUMBER_STDERR macro doesnt modify the number given to it

Modified:
   trunk/uClibc/ldso/include/dl-string.h


Changeset:
Modified: trunk/uClibc/ldso/include/dl-string.h
===================================================================
--- trunk/uClibc/ldso/include/dl-string.h	2005-07-11 21:53:23 UTC (rev 10785)
+++ trunk/uClibc/ldso/include/dl-string.h	2005-07-11 22:04:57 UTC (rev 10786)
@@ -306,9 +306,10 @@
 	_dl_write(2, tmp2, tmp1 - tmp2 + sizeof(tmp) - 1); \
 }
 
-#define SEND_NUMBER_STDERR(X, add_a_newline) \
+#define SEND_NUMBER_STDERR(NUM, add_a_newline) \
 { \
 	char tmp[26], v, *tmp2, *tmp1 = tmp; \
+	unsigned long X = (unsigned long)(NUM); \
 	CONSTANT_STRING_GOT_FIXUP(tmp1); \
 	tmp2 = tmp1 + sizeof(tmp); \
 	*--tmp2 = '\0'; \




More information about the uClibc-cvs mailing list