--- psiconv/trunk/program/psiconv/gen_html4.c 2005/11/15 14:41:26 267 +++ psiconv/trunk/program/psiconv/gen_html4.c 2014/10/19 19:35:10 339 @@ -1,6 +1,6 @@ /* gen_html.c - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999-2004 Frodo Looijaard + 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 @@ -247,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);