--- psiconv/trunk/lib/psiconv/parse_word.c 2000/12/27 23:20:45 82 +++ psiconv/trunk/lib/psiconv/parse_word.c 2002/01/29 18:38:38 142 @@ -25,6 +25,10 @@ #include "parse_routines.h" #include "error.h" +#ifdef DMALLOC +#include +#endif + int psiconv_parse_word_status_section(const psiconv_buffer buf, int lev, psiconv_u32 off, int *length, psiconv_word_status_section *result) @@ -326,7 +330,7 @@ } psiconv_progress(lev+2,off+len,"Reading trailing bytes"); - for (i = 0; i < 3; i++) { + for (i = 0; i < psiconv_list_length((*result)->styles); i++) { temp = psiconv_read_u8(buf,lev+3,off+len,&res); if (res) goto ERROR4;