summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-11-13 21:15:19 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2005-11-13 21:15:19 +1100
commita2e5f798aeb8bee748b1478001fc8691d4104d0d (patch)
tree1e549276641adc7dd4ee9b8a23287c2406c66758 /src
parent[HELPER] Use mktemp if tempfile is not available (diff)
downloaddash-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.h2
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;