[Gambas-devel] Minor Bug on DB Driver : Not setting Type

Nigel Gerrard nigel at ...2...
Wed May 19 16:09:37 CEST 2004


Benoit,

If the Database Type is not set (left blank), a segmentation fault will occur within DB_GetDriver of ../src/lib/db/main.c.

The offending code is line 129 : char comp[strlen(type) + 8]

I would suggest the following change:

129: char *comp;
137: GB.Alloc((void **)&comp, strlen(type) + 8);


Nigel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20040519/ab746d2e/attachment.html>


More information about the Devel mailing list