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

Benoit Minisini gambas at ...1...
Thu May 20 00:02:49 CEST 2004


On Wednesday 19 May 2004 16:09, Nigel Gerrard wrote:
> 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

OK. Fixed...

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list