Diff between ed881174ca207a712a7b3cb5d1e756253bacb974 and e4968e7fda915d3c8d408b45c51d8f3614f213c5
Changed Files
| File | Additions | Deletions | Status |
| src/textfile.c | +1 | -1 | modified |
Full Patch
diff --git a/src/textfile.c b/src/textfile.c
index a4e54a4..7267f3a 100644
--- a/src/textfile.c
+++ b/src/textfile.c
@@ -335,7 +335,7 @@ static char *read_key(const char *pathname, const char *key, int icase)
goto unmap;
}
- end = strnpbrk(off, size - (map - off), "\r\n");
+ end = strnpbrk(off, size - (off - map), "\r\n");
if (!end) {
err = -EILSEQ;
goto unmap;