diff options
author | 2013-11-12 17:44:03 +0000 | |
---|---|---|
committer | 2013-11-12 17:44:03 +0000 | |
commit | eac6c5747574a5e71a0a88e710f7ffbf3935444e (patch) | |
tree | 28f30f114f95c58efa01f098fa150d10582ad639 | |
parent | Use daddr_t to hold calculated disk sector address. %d -> %lld to (diff) | |
download | wireguard-openbsd-eac6c5747574a5e71a0a88e710f7ffbf3935444e.tar.xz wireguard-openbsd-eac6c5747574a5e71a0a88e710f7ffbf3935444e.zip |
Do not use a char as index, unless first making it unsigned.
(signed char, ya know)
ok espie
-rw-r--r-- | usr.bin/make/varmodifiers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/varmodifiers.c b/usr.bin/make/varmodifiers.c index 450d4a869d9..0d7aef4bc9b 100644 --- a/usr.bin/make/varmodifiers.c +++ b/usr.bin/make/varmodifiers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: varmodifiers.c,v 1.33 2012/10/18 17:54:43 espie Exp $ */ +/* $OpenBSD: varmodifiers.c,v 1.34 2013/11/12 17:44:03 deraadt Exp $ */ /* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */ /* @@ -1464,7 +1464,7 @@ VarModifiers_Apply(char *str, const struct Name *name, SymTable *ctxt, if (DEBUG(VAR)) printf("Applying :%c to \"%s\"\n", *tstr, str); - mod = choose_mod[*tstr]; + mod = choose_mod[(unsigned char)*tstr]; arg = NULL; if (mod != NULL && (!mod->atstart || atstart)) |