diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-04-13 06:02:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-04-13 06:02:32 +0000 |
commit | cf80c0f0a20423e03f897f5e3b1d1ba0d90a4174 (patch) | |
tree | 55c00c21948a829dd6b70acd950471cefd6d25df /ldso | |
parent | 39312fffc63b8a4aa6f3404ee932a9a87f83b2d7 (diff) |
Don't write out the terminating NULL char
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/include/dl-string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h index 6fdee77fc..cd2d70120 100644 --- a/ldso/include/dl-string.h +++ b/ldso/include/dl-string.h @@ -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); \ }; |