diff options
author | herbert <herbert@gondor.apana.org.au> | 2004-08-21 10:07:12 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-26 18:33:03 +1000 |
commit | f48e1e26c35ba5ec6f88d21133bc6ace072a1236 (patch) | |
tree | c6c11595b61ada049c3615bc93717eedf88d72c5 /src | |
parent | Size optimisations around varvalue() in src/expand.c. (diff) | |
download | dash-f48e1e26c35ba5ec6f88d21133bc6ace072a1236.tar.gz dash-f48e1e26c35ba5ec6f88d21133bc6ace072a1236.zip |
Fixed signed char promotion in src/expand.c.
Diffstat (limited to '')
-rw-r--r-- | src/expand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand.c b/src/expand.c index 7d7f815..1debde9 100644 --- a/src/expand.c +++ b/src/expand.c @@ -131,7 +131,7 @@ STATIC void expbackq(union node *, int, int); STATIC const char *subevalvar(char *, char *, int, int, int, int, int); STATIC char *evalvar(char *, int); STATIC size_t strtodest(const char *, const char *, int); -STATIC void memtodest(const char *, size_t, const char *, int); +STATIC void memtodest(const unsigned char *, size_t, const char *, int); STATIC ssize_t varvalue(char *, int, int); STATIC void recordregion(int, int, int); STATIC void removerecordregions(int); @@ -887,7 +887,7 @@ end: */ STATIC void -memtodest(const char *p, size_t len, const char *syntax, int quotes) { +memtodest(const unsigned char *p, size_t len, const char *syntax, int quotes) { char *q; if (unlikely(!len)) |