summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testutils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testutils.h b/test/testutils.h
index 584915b..3e23c07 100644
--- a/test/testutils.h
+++ b/test/testutils.h
@@ -60,7 +60,7 @@ bool parse_testfile(const char *filename, line_func callback, void *pw)
if (buf[0] == '\n')
continue;
- if (!callback(buf, parse_strlen(buf, sizeof buf), pw)) {
+ if (!callback(buf, parse_strlen(buf, sizeof buf - 1), pw)) {
fclose(fp);
return false;
}