Introduction
Introduction Statistics Contact Development Disclaimer Help
count from 1 (not 0) for the column number / character index - gopher-validator…
git clone git://git.codemadness.org/gopher-validator
Log
Files
Refs
README
LICENSE
---
commit 512e7771a14a5b12fcbd24d96497fcf5cc999722
parent ea7e95bed480772aa6a83526d0a8f7d34dd08656
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 24 Aug 2019 11:33:17 +0200
count from 1 (not 0) for the column number / character index
Diffstat:
M gopher-validator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gopher-validator.c b/gopher-validator.c
@@ -387,7 +387,7 @@ checkdir(FILE *fp)
break;
if (r == -1) {
warning("%zu:%d: username: first invalid byte,…
- linenr, i);
+ linenr, i + 1);
break;
}
if ((wc = wcwidth(w)) == -1)
@@ -398,7 +398,7 @@ checkdir(FILE *fp)
User_Name field contain only printable characters".…
if (!iswprint(w)) {
error("%zu:%d: first non-printable character i…
- linenr, i);
+ 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.