[GRASS5] [patch] resize bug in X monitor

Glynn Clements glynn.clements at virgin.net
Tue Apr 30 14:56:19 EDT 2002


Magnus B{ckstr|m wrote:

> the below patch corrects a bunnyhop error in XDRIVER and updates
> G_malloc() a little.
> 
> The bunnyhop error caused a bus error when resizing an X monitor on
> freebsd,

OK; I'll fix that.

> and the update to G_malloc() ensures that returned memory
> is initialized to zeros (which not all malloc()s can be trusted to
> do).

This shouldn't be necessary. Code which requires that the memory is
zeroed should call G_calloc().

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list