diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-11-13 21:15:19 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-11-13 21:15:19 +1100 |
commit | a2e5f798aeb8bee748b1478001fc8691d4104d0d (patch) | |
tree | 1e549276641adc7dd4ee9b8a23287c2406c66758 /src | |
parent | [HELPER] Use mktemp if tempfile is not available (diff) | |
download | dash-a2e5f798aeb8bee748b1478001fc8691d4104d0d.tar.gz dash-a2e5f798aeb8bee748b1478001fc8691d4104d0d.zip |
[MEMALLOC] Remove unnecessary truncation in _STPUTC
Using char in the function argument causes unnecessary truncation to occur. This patch changes it to an int.
Diffstat (limited to 'src')
-rw-r--r-- | src/memalloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memalloc.h b/src/memalloc.h index 1691d13..8a41e64 100644 --- a/src/memalloc.h +++ b/src/memalloc.h @@ -64,7 +64,7 @@ char *stnputs(const char *, size_t, char *); char *stputs(const char *, char *); -static inline char *_STPUTC(char c, char *p) { +static inline char *_STPUTC(int c, char *p) { if (p == sstrend) p = growstackstr(); *p++ = c; |