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

andersen at uclibc.org andersen at uclibc.org
Wed Apr 13 06:02:33 UTC 2005


Author: andersen
Date: 2005-04-13 00:02:32 -0600 (Wed, 13 Apr 2005)
New Revision: 10089

Log:
Don't write out the terminating NULL char


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-04-13 01:44:45 UTC (rev 10088)
+++ trunk/uClibc/ldso/include/dl-string.h	2005-04-13 06:02:32 UTC (rev 10089)
@@ -291,7 +291,7 @@
     } while ((X) > 0);						\
     *--tmp2 = 'x';						\
     *--tmp2 = '0';						\
-    _dl_write (2, tmp2, tmp1 - tmp2 + sizeof(tmp));		\
+    _dl_write (2, tmp2, tmp1 - tmp2 + sizeof(tmp) - 1);		\
 };
 
 #define SEND_NUMBER_STDERR(X, add_a_newline) {			\
@@ -305,7 +305,7 @@
 	*--tmp2 = '0' + v;					\
 	(X) /= 10;						\
     } while ((X) > 0);						\
-    _dl_write (2, tmp2, tmp1 - tmp2 + sizeof(tmp));		\
+    _dl_write (2, tmp2, tmp1 - tmp2 + sizeof(tmp) - 1);		\
 };
 
 




More information about the uClibc-cvs mailing list