sourcenav 4.52 cparser.c fix for MANY function args
Ed P.
edp@shell1.eznet.net
Thu Nov 2 00:44:00 GMT 2000
I fixed a bug in the source navigator cbrowser's cparser.c.
Regards,
Ed Pendzik
edp@eznet.net
--------------------------------------------------
Text description
--------------------------------------------------
snavigator/parsers/cpp/cparser.c: increased 2 fixed string buffers
to prevent core dump when parsing functions with many (67+) arguments.
--------------------------------------------------
ChangeLog entry
--------------------------------------------------
2000-11-02 Ed Pendzik <edp@eznet.net>
* snavigator/parsers/cpp/cparser.c: increased 2 fixed string buffers
to prevent core dump when parsing functions with many (67+)
arguments.
--------------------------------------------------
diff -c3p SN452-source/snavigator/parsers/cpp/cparser.c.orig SN452-source/snavigator/parsers/cpp/cparser.c
--------------------------------------------------
*** SN452-source/snavigator/parsers/cpp/cparser.c.orig Thu Nov 2 01:51:25 2000
--- SN452-source/snavigator/parsers/cpp/cparser.c Thu Nov 2 01:52:45 2000
*************** extern void put_cross1( int type, char *
*** 6166,6172 ****
if( cross_ref_fp )
{
Tcl_DString utfString;
! char tmp[1000];
sprintf(tmp,"%d;%d;%s;%d;%d;%d;%d;%ld;%s;%s;%s;%s;%s;%d;\n"
, PAF_CROSS_REF_CPP
--- 6166,6172 ----
if( cross_ref_fp )
{
Tcl_DString utfString;
! char tmp[4096];
sprintf(tmp,"%d;%d;%s;%d;%d;%d;%d;%ld;%s;%s;%s;%s;%s;%d;\n"
, PAF_CROSS_REF_CPP
*************** extern int f_charno( int i )
*** 7053,7059 ****
extern char *identstring( int i )
{
sString_t sString;
! static char ac[1000];
sString = ident( i );
--- 7053,7059 ----
extern char *identstring( int i )
{
sString_t sString;
! static char ac[4096];
sString = ident( i );
--------------------------------------------------
More information about the Sourcenav
mailing list