diff options
author | rsc <devnull@localhost> | 2004-03-05 05:53:11 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-05 05:53:11 +0000 |
commit | 15680d56a6c6e15921d958aa6006825c2cd20bf8 (patch) | |
tree | 84abb4cb8d761fb49d688b3eebcf17e47f05372a /src/cmd/acme | |
parent | 230d62c4756ece47951e96a7cb1b5b72cf6a3844 (diff) | |
download | plan9port-15680d56a6c6e15921d958aa6006825c2cd20bf8.tar.gz plan9port-15680d56a6c6e15921d958aa6006825c2cd20bf8.tar.bz2 plan9port-15680d56a6c6e15921d958aa6006825c2cd20bf8.zip |
Amazingly picky bug fixes from Valgrind.
Diffstat (limited to 'src/cmd/acme')
-rw-r--r-- | src/cmd/acme/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/acme/util.c b/src/cmd/acme/util.c index 180b2bd2..cfbfae3f 100644 --- a/src/cmd/acme/util.c +++ b/src/cmd/acme/util.c @@ -298,7 +298,7 @@ tgetc(void *a, uint n) Rune* skipbl(Rune *r, int n, int *np) { - while(n>0 && *r==' ' || *r=='\t' || *r=='\n'){ + while(n>0 && (*r==' ' || *r=='\t' || *r=='\n')){ --n; r++; } @@ -309,7 +309,7 @@ skipbl(Rune *r, int n, int *np) Rune* findbl(Rune *r, int n, int *np) { - while(n>0 && *r!=' ' && *r!='\t' && *r!='\n'){ + while(n>0 && (*r!=' ' && *r!='\t' && *r!='\n')){ --n; r++; } |