Introduction
Introduction Statistics Contact Development Disclaimer Help
reset mbtowc decoding state so it prints the warning once - gopher-validator - …
git clone git://git.codemadness.org/gopher-validator
Log
Files
Refs
README
LICENSE
---
commit d9abe6e45e708f965778fba7a66e56300fc0b814
parent 936d0f6a5c92d6580cd15d60fac5c0e98b01e946
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 5 Jan 2021 21:50:49 +0100
reset mbtowc decoding state so it prints the warning once
Diffstat:
M gopher-validator.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
diff --git a/gopher-validator.c b/gopher-validator.c
@@ -386,6 +386,7 @@ checkdir(FILE *fp)
if (r == 0)
break;
if (r == -1) {
+ mbtowc(NULL, NULL, 0); /* reset state */
warning("%zu:%d: username: first invalid byte,…
linenr, i + 1);
break;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.