From 4957a7f5bef8c4b971905447128d3e0d4a360357 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sun, 21 Jul 2002 16:58:12 +0000 Subject: [PATCH] another follow-up to fname_decode() routine --- src/files.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.40.0