aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2018-10-01 23:47:37 +0200
committerPetter Rodhelind <petter.rodhelind@gmail.com>2018-10-01 23:47:37 +0200
commitd95f1bcc4938b3b0b7f832b67575e07a87095721 (patch)
tree60706c87bf9935794da423267220d00ebccf3fbc /src/cmd/acme
parent79223bb49d950dc6236b6c79c37fea787e40ba5c (diff)
parent93c75d2bad341af383520409fd354dcff3f2c279 (diff)
downloadplan9port-d95f1bcc4938b3b0b7f832b67575e07a87095721.tar.gz
plan9port-d95f1bcc4938b3b0b7f832b67575e07a87095721.tar.bz2
plan9port-d95f1bcc4938b3b0b7f832b67575e07a87095721.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/acme')
-rw-r--r--src/cmd/acme/addr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/acme/addr.c b/src/cmd/acme/addr.c
index 2ccae960..6aee8993 100644
--- a/src/cmd/acme/addr.c
+++ b/src/cmd/acme/addr.c
@@ -240,12 +240,12 @@ address(uint showerr, Text *t, Range lim, Range ar, void *a, uint q0, uint q1, i
case '5': case '6': case '7': case '8': case '9':
n = c -'0';
while(q<q1){
- c = (*getc)(a, q++);
- if(c<'0' || '9'<c){
+ nc = (*getc)(a, q++);
+ if(nc<'0' || '9'<nc){
q--;
break;
}
- n = n*10+(c-'0');
+ n = n*10+(nc-'0');
}
if(*evalp)
r = number(showerr, t, r, n, dir, size, evalp);