--- psiconv/trunk/program/psiconv/gen_html4.c 2004/02/04 11:35:35 195 +++ psiconv/trunk/program/psiconv/gen_html4.c 2014/10/19 19:35:10 339 @@ -1,5 +1,6 @@ -/* gen_html.c - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999-2004 Frodo Looijaard +/* + gen_html.c - Part of psiconv, a PSION 5 file formats converter + Copyright (c) 1999-2005 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -246,7 +247,7 @@ fputs("Out of memory error\n",stderr); exit(1); } - memcpy(text,para->text+charnr,len * sizeof(*text)); + memcpy(text,para->text+start,len * sizeof(*text)); text[len] = 0; characters(config,list,text,layout->layout,enc); free(text); @@ -316,7 +317,7 @@ } -static struct fileformat_s ffs[] = +static struct fileformat_s fileformats[] = { { "HTML4", @@ -336,6 +337,6 @@ void init_html4(void) { int i; - for (i = 0; ffs[i].name; i++) - psiconv_list_add(fileformat_list,ffs+i); + for (i = 0; fileformats[i].name; i++) + psiconv_list_add(fileformat_list,fileformats+i); }