[brlcad-commits] SF.net SVN: brlcad:[50263] brlcad/trunk/src/util/bwmod.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2012-04-24 14:40:57
|
Revision: 50263 http://brlcad.svn.sourceforge.net/brlcad/?rev=50263&view=rev Author: brlcad Date: 2012-04-24 14:40:47 +0000 (Tue, 24 Apr 2012) Log Message: ----------- check the lower bounds too, cid 1498 Modified Paths: -------------- brlcad/trunk/src/util/bwmod.c Modified: brlcad/trunk/src/util/bwmod.c =================================================================== --- brlcad/trunk/src/util/bwmod.c 2012-04-24 14:35:47 UTC (rev 50262) +++ brlcad/trunk/src/util/bwmod.c 2012-04-24 14:40:47 UTC (rev 50263) @@ -255,6 +255,8 @@ /* translate */ for (p = ibuf, q = &ibuf[n]; p < q; ++p) { long i = *p; + if (i < 0) + i = 0; if (i >= MAPBUFLEN) *p = i = MAPBUFLEN; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |