Revision: 48442
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48442&view=rev
Author:   n_reed
Date:     2012-01-11 21:10:34 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
terminate potentially unterminated string, CID 108

Modified Paths:
--------------
    brlcad/trunk/src/libcursor/cursor.c

Modified: brlcad/trunk/src/libcursor/cursor.c
===================================================================
--- brlcad/trunk/src/libcursor/cursor.c 2012-01-11 21:10:32 UTC (rev 48441)
+++ brlcad/trunk/src/libcursor/cursor.c 2012-01-11 21:10:34 UTC (rev 48442)
@@ -146,6 +146,7 @@
     else
     {
        (void) strncpy( termName, term, MAX_TERM_LEN ); /* intentionally not 
bu_strlcpy to not add libbu dep */
+       termName[sizeof(termName) - 1] = '\0';
     }
 
     /* Get terminal entry.                                             */

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

Reply via email to