Revision: 48501
http://brlcad.svn.sourceforge.net/brlcad/?rev=48501&view=rev
Author: erikgreenwald
Date: 2012-01-12 15:22:28 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
Pull magic values out to ../src/librt/bundle.cdefines. Zero out all carg/carg
memory. Cov1617
Modified Paths:
--------------
brlcad/trunk/src/librt/vlist.c
Modified: brlcad/trunk/src/librt/vlist.c
===================================================================
--- brlcad/trunk/src/librt/vlist.c 2012-01-12 15:22:26 UTC (rev 48500)
+++ brlcad/trunk/src/librt/vlist.c 2012-01-12 15:22:28 UTC (rev 48501)
@@ -31,6 +31,7 @@
#include "common.h"
#include <stdio.h>
+#include <string.h>
#include <math.h>
#include <string.h>
#include "bin.h"
@@ -713,13 +714,21 @@
{
mat_t mat;
const struct uplot *up;
- char carg[256] = {0,0,0};
- fastf_t arg[6];
+#define CARG_LEN 256
+#define ARG_LEN 6
+ char carg[CARG_LEN];
+ fastf_t arg[ARG_LEN];
vect_t a, b;
point_t last_pos;
static point_t lpnt; /* last point of a move/draw series */
static int moved = 0; /* moved since color change */
+ memset(carg, 0, sizeof(char)*CARG_LEN);
+ memset(arg, 0, sizeof(fastf_t)*ARG_LEN);
+#undef ARG_LEN
+#undef CARG_LEN
+
+
/* look it up */
if (c < 'A' || c > 'z') {
up = &rt_uplot_error;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits