--- psiconv/trunk/lib/psiconv/generate_word.c 2000/12/25 14:34:17 78 +++ psiconv/trunk/lib/psiconv/generate_word.c 2000/12/25 22:25:33 79 @@ -31,7 +31,7 @@ int res; if (!value) { - psiconv_warn(0,psiconv_list_length(buf),"Null word status section"); + psiconv_warn(0,psiconv_buffer_length(buf),"Null word status section"); return -PSICONV_E_GENERATE; } @@ -68,7 +68,7 @@ if (!value || !value->normal || !value->styles) { - psiconv_warn(0,psiconv_list_length(buf),"Null word styles section"); + psiconv_warn(0,psiconv_buffer_length(buf),"Null word styles section"); res = -PSICONV_E_GENERATE; goto ERROR1; } @@ -99,7 +99,7 @@ for (i = 0; i < psiconv_list_length(value->styles); i++) { if (!(style = psiconv_list_get(value->styles,i))) { - psiconv_warn(0,psiconv_list_length(buf),"Massive memory corruption"); + psiconv_warn(0,psiconv_buffer_length(buf),"Massive memory corruption"); res = -PSICONV_E_OTHER; goto ERROR3; } @@ -110,12 +110,12 @@ goto ERROR3; for (i = 0; i < psiconv_list_length(value->styles); i++) { if (!(style = psiconv_list_get(value->styles,i))) { - psiconv_warn(0,psiconv_list_length(buf),"Massive memory corruption"); + psiconv_warn(0,psiconv_buffer_length(buf),"Massive memory corruption"); res = -PSICONV_E_OTHER; goto ERROR3; } if (!style->name) { - psiconv_warn(0,psiconv_list_length(buf),"Null style name"); + psiconv_warn(0,psiconv_buffer_length(buf),"Null style name"); res = -PSICONV_E_GENERATE; goto ERROR3; }