--- psiconv/trunk/lib/psiconv/parse_sheet.c 2003/11/25 17:57:05 168 +++ psiconv/trunk/lib/psiconv/parse_sheet.c 2004/01/04 22:20:43 183 @@ -826,6 +826,7 @@ psiconv_u32 temp; psiconv_bool_t has_layout; int leng; + char *auxstr; psiconv_progress(config,lev+1,off,"Going to read a sheet cell structure"); if (!(*result = malloc(sizeof(**result)))) @@ -927,8 +928,10 @@ psiconv_read_string(config,buf,lev+2,off+len,&leng,&res); if (res) goto ERROR2; - psiconv_debug(config,lev+2,off+len,"Cell contents: `%s'", - (*result)->data.dat_string); + if (!(auxstr = psiconv_make_printable((*result)->data.dat_string))) + goto ERROR2; + psiconv_debug(config,lev+2,off+len,"Cell contents: `%s'",auxstr); + free(auxstr); len += leng; } else { psiconv_warn(config,lev+2,off+len,"Unknown Sheet Cell type: %02x",(*result)->type); @@ -1547,8 +1550,8 @@ } else if (marker == 0x02) { (*result)->type = psiconv_var_string; psiconv_progress(config,lev+2,off+len,"Going to read a string"); - (*result)->data.dat_string = psiconv_read_string(config,buf,lev+2,off+len,&leng, - &res); + (*result)->data.dat_string = psiconv_read_string(config,buf,lev+2,off+len, + &leng, &res); if (res) goto ERROR3; len += leng;