--- parser3/src/main/pa_exception.C 2001/10/29 08:05:37 1.23 +++ parser3/src/main/pa_exception.C 2001/11/15 18:21:31 1.25 @@ -2,9 +2,9 @@ Parser: exception class. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_exception.C,v 1.23 2001/10/29 08:05:37 paf Exp $ + $Id: pa_exception.C,v 1.25 2001/11/15 18:21:31 paf Exp $ */ #include "pa_common.h" @@ -12,7 +12,7 @@ Exception::Exception() { ftype=fcode=fproblem_source=0; - fcomment=0; + fcomment[0]=0; } Exception::Exception(const String *atype, const String *acode, const String *aproblem_source, @@ -25,11 +25,10 @@ Exception::Exception(const String *atype if(comment_fmt) { va_list args; va_start(args, comment_fmt); - fcomment=(char *)malloc(MAX_STRING); vsnprintf(fcomment, MAX_STRING, comment_fmt, args); va_end(args); } else - fcomment=0; + fcomment[0]=0; } #ifdef XML