]> Git Repo - uclibc-ng.git/commitdiff
Don't write out the terminating NULL char
authorEric Andersen <[email protected]>
Wed, 13 Apr 2005 06:02:32 +0000 (06:02 -0000)
committerEric Andersen <[email protected]>
Wed, 13 Apr 2005 06:02:32 +0000 (06:02 -0000)
ldso/include/dl-string.h

index 6fdee77fccafd75b09aabab0fe5373b3a040d1e8..cd2d7012026a54475072f9659056519b2e9ea82c 100644 (file)
@@ -291,7 +291,7 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i)
     } 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 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i)
        *--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);                \
 };
 
 
This page took 0.027097 seconds and 4 git commands to generate.