another follow-up to fname_decode() routine
This commit is contained in:
+4
-4
@@ -215,12 +215,12 @@ int bufsz;
|
|||||||
if ((bufsz - cnt) <= 2) return callerbuf;
|
if ((bufsz - cnt) <= 2) return callerbuf;
|
||||||
if (*sp == quotechar) {
|
if (*sp == quotechar) {
|
||||||
sp++;
|
sp++;
|
||||||
for (k=0; k < 15; ++k) if (*sp == hexdigits[k]) break;
|
for (k=0; k < 16; ++k) if (*sp == hexdigits[k]) break;
|
||||||
if (k >= 15) return callerbuf; /* impossible, so bail */
|
if (k >= 16) return callerbuf; /* impossible, so bail */
|
||||||
calc = k << 4;
|
calc = k << 4;
|
||||||
sp++;
|
sp++;
|
||||||
for (k=0; k < 15; ++k) if (*sp == hexdigits[k]) break;
|
for (k=0; k < 16; ++k) if (*sp == hexdigits[k]) break;
|
||||||
if (k >= 15) return callerbuf; /* impossible, so bail */
|
if (k >= 16) return callerbuf; /* impossible, so bail */
|
||||||
calc += k;
|
calc += k;
|
||||||
sp++;
|
sp++;
|
||||||
*op++ = calc;
|
*op++ = calc;
|
||||||
|
|||||||
Reference in New Issue
Block a user