diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-11 22:04:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-11 22:04:57 +0000 |
commit | bdf82cbbc103a9850c1315a0cb30f5b42ce5f4bb (patch) | |
tree | 30ec5d760e608f43c9301e54bc592bd291086abf /ldso/include/dl-string.h | |
parent | 128d0c53cc1c605aff3910f9465c33f0681ffdf4 (diff) |
make sure the SEND_NUMBER_STDERR macro doesnt modify the number given to it
Diffstat (limited to 'ldso/include/dl-string.h')
-rw-r--r-- | ldso/include/dl-string.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h index 8e0c99107..8e35e6ad2 100644 --- a/ldso/include/dl-string.h +++ b/ldso/include/dl-string.h @@ -306,9 +306,10 @@ static __always_inline char * _dl_simple_ltoahex(char * local, unsigned long i) _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'; \ |