summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2007-04-08 15:36:32 +0100
committerAntti-Juhani Kaijanaho <ajk@debian.org>2007-04-08 15:36:32 +0100
commitc81f894ad5d027bd75b0918ddd6a5937230ebf69 (patch)
tree6570624fa7aa3bde436f4880f37721ba00436bbc /lib
parent090c4041cc215f2f89818156df07ceadf215082f (diff)
downloaddctrl-tools-c81f894ad5d027bd75b0918ddd6a5937230ebf69.tar.gz
paragraph.c (para_parse_next): fix outdated assertion
Diffstat (limited to 'lib')
-rw-r--r--lib/paragraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/paragraph.c b/lib/paragraph.c
index 5dc06a4..6926abf 100644
--- a/lib/paragraph.c
+++ b/lib/paragraph.c
@@ -137,7 +137,7 @@ redo:
if (!attr.valid) {
field_data = 0;
} else {
- assert(attr.inx < MAX_FIELDS);
+ assert(attr.inx < para->nfields);
field_data = &para->fields[attr.inx];
field_data->start = pos;
field_data->line = line;