Revision: 48439
http://brlcad.svn.sourceforge.net/brlcad/?rev=48439&view=rev
Author: starseeker
Date: 2012-01-11 20:57:45 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Make sure we have type before we call strlen - CID 294
Modified Paths:
--------------
brlcad/trunk/src/libged/ls.c
Modified: brlcad/trunk/src/libged/ls.c
===================================================================
--- brlcad/trunk/src/libged/ls.c 2012-01-11 20:54:22 UTC (rev 48438)
+++ brlcad/trunk/src/libged/ls.c 2012-01-11 20:57:45 UTC (rev 48439)
@@ -282,7 +282,8 @@
bu_vls_printf(gedp->ged_result_str, "%s", dp->d_namep);
bu_vls_spaces(gedp->ged_result_str, (int)(max_nam_len -
strlen(dp->d_namep)));
bu_vls_printf(gedp->ged_result_str, " %s", type);
- bu_vls_spaces(gedp->ged_result_str, (int)(max_type_len -
strlen(type)));
+ if (type)
+ bu_vls_spaces(gedp->ged_result_str, (int)(max_type_len -
strlen(type)));
bu_vls_printf(gedp->ged_result_str, " %2d %2d %ld\n",
dp->d_major_type, dp->d_minor_type,
(long)(dp->d_len));
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits