--- parser3/src/main/pa_common.C 2003/04/11 12:29:00 1.143.2.21.2.27 +++ parser3/src/main/pa_common.C 2003/06/02 09:31:05 1.143.2.21.2.28 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_COMMON_C="$Date: 2003/04/11 12:29:00 $"; +static const char* IDENT_COMMON_C="$Date: 2003/06/02 09:31:05 $"; #include "pa_common.h" #include "pa_exception.h" @@ -168,9 +168,10 @@ void fix_line_breaks(char *str, size_t& } else // \r, not \n = Macintosh bol=eol+1; } - // last piece without \r, including terminating 0 + // last piece without \r if(dest!=bol) memcpy(dest, bol, eob-bol); + str[length]=0; // terminating } char* file_read_text(Request_charsets& charsets,