sourcenav 4.52 cparser.c fix for MANY function args

Mo DeJong mdejong@cygnus.com
Thu Nov 2 00:53:00 GMT 2000


On Thu, 2 Nov 2000, Ed P. wrote:

> I fixed a bug in the source navigator cbrowser's cparser.c.
> 
> Regards,
> Ed Pendzik
> edp@eznet.net

Funny, I just fixed that but the other day :)

Your fix makes the buffers bigger. That might make
the crashes go away but if you had a function with
a ton of arguments, it would come back.

My solution to this problem was to use snprintf()
and pass in the size of the buffer. What do you
think of that approach?

Mo DeJong
Red Hat Inc


More information about the Sourcenav mailing list