Revision: 49030
          http://brlcad.svn.sourceforge.net/brlcad/?rev=49030&view=rev
Author:   indianlarry
Date:     2012-01-24 15:53:20 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
fix size in memset() initialization when growing buffer

Modified Paths:
--------------
    brlcad/trunk/src/other/step/src/clutils/gennodearray.cc

Modified: brlcad/trunk/src/other/step/src/clutils/gennodearray.cc
===================================================================
--- brlcad/trunk/src/other/step/src/clutils/gennodearray.cc     2012-01-24 
15:41:28 UTC (rev 49029)
+++ brlcad/trunk/src/other/step/src/clutils/gennodearray.cc     2012-01-24 
15:53:20 UTC (rev 49030)
@@ -81,7 +81,7 @@
         _bufsize = (index+1) * 2;
         newbuf = new GenericNode*[_bufsize];
 
-       memset(newbuf, 0, _bufsize);
+       memset(newbuf, 0, _bufsize*sizeof(GenericNode*));
 //     memset(newbuf[oldBufSize], 0, 
 //             (_bufsize - oldBufSize)*sizeof(GenericNode*) );
 //        bcopy(_buf, newbuf, _count*sizeof(GenericNode*));

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to