From: nethack.allison Date: Sun, 21 Jul 2002 16:58:12 +0000 (+0000) Subject: another follow-up to fname_decode() routine X-Git-Tag: MOVE2GIT~2617 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4957a7f5bef8c4b971905447128d3e0d4a360357;p=nethack another follow-up to fname_decode() routine --- diff --git a/src/files.c b/src/files.c index 4ecc6aec1..fcb929263 100644 --- a/src/files.c +++ b/src/files.c @@ -215,12 +215,12 @@ int bufsz; if ((bufsz - cnt) <= 2) return callerbuf; if (*sp == quotechar) { sp++; - for (k=0; k < 15; ++k) if (*sp == hexdigits[k]) break; - if (k >= 15) return callerbuf; /* impossible, so bail */ + for (k=0; k < 16; ++k) if (*sp == hexdigits[k]) break; + if (k >= 16) return callerbuf; /* impossible, so bail */ calc = k << 4; sp++; - for (k=0; k < 15; ++k) if (*sp == hexdigits[k]) break; - if (k >= 15) return callerbuf; /* impossible, so bail */ + for (k=0; k < 16; ++k) if (*sp == hexdigits[k]) break; + if (k >= 16) return callerbuf; /* impossible, so bail */ calc += k; sp++; *op++ = calc;