Revision: 51747
          http://brlcad.svn.sourceforge.net/brlcad/?rev=51747&view=rev
Author:   starseeker
Date:     2012-08-01 23:13:11 +0000 (Wed, 01 Aug 2012)
Log Message:
-----------
Make a stab at fixing label string printing.

Modified Paths:
--------------
    brlcad/trunk/src/libged/analyze.c

Modified: brlcad/trunk/src/libged/analyze.c
===================================================================
--- brlcad/trunk/src/libged/analyze.c   2012-08-01 21:37:49 UTC (rev 51746)
+++ brlcad/trunk/src/libged/analyze.c   2012-08-01 23:13:11 UTC (rev 51747)
@@ -1017,8 +1017,8 @@
     table.nrows = aip->neqn;
     for (i = 0; i < aip->neqn; i++) {
         vect_t tmp;
-        bu_vls_printf(&tmpstr, "%4zu", i);
-        sprintf(faces[i].label, "%s", bu_vls_addr(&tmpstr));
+        bu_vls_sprintf(&tmpstr, "%4zu", i);
+        snprintf(faces[i].label, 5, "%s", bu_vls_addr(&tmpstr));
 
         /* calculate surface area */
         analyze_poly_face(gedp, &faces[i], &table.rows[i]);

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to