diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2007-04-08 15:36:32 +0100 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2007-04-08 15:36:32 +0100 |
commit | c81f894ad5d027bd75b0918ddd6a5937230ebf69 (patch) | |
tree | 6570624fa7aa3bde436f4880f37721ba00436bbc /lib | |
parent | 090c4041cc215f2f89818156df07ceadf215082f (diff) | |
download | dctrl-tools-c81f894ad5d027bd75b0918ddd6a5937230ebf69.tar.gz |
paragraph.c (para_parse_next): fix outdated assertion
Diffstat (limited to 'lib')
-rw-r--r-- | lib/paragraph.c | 2 |
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 = ¶->fields[attr.inx]; field_data->start = pos; field_data->line = line; |