From a2e5f798aeb8bee748b1478001fc8691d4104d0d Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sun, 13 Nov 2005 21:15:19 +1100 Subject: [MEMALLOC] Remove unnecessary truncation in _STPUTC Using char in the function argument causes unnecessary truncation to occur. This patch changes it to an int. --- src/memalloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/memalloc.h') 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; -- cgit 1.4.1