Revision: 48444
http://brlcad.svn.sourceforge.net/brlcad/?rev=48444&view=rev
Author: n_reed
Date: 2012-01-11 21:23:43 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
terminate possibly unterminated strings, CID 109, CID 110
Modified Paths:
--------------
brlcad/trunk/src/libpkg/pkg.c
Modified: brlcad/trunk/src/libpkg/pkg.c
===================================================================
--- brlcad/trunk/src/libpkg/pkg.c 2012-01-11 21:11:08 UTC (rev 48443)
+++ brlcad/trunk/src/libpkg/pkg.c 2012-01-11 21:23:43 UTC (rev 48444)
@@ -431,6 +431,7 @@
/* UNIX Domain socket, port = pathname */
sunhim.sun_family = AF_UNIX;
strncpy(sunhim.sun_path, service, sizeof(sunhim.sun_path));
+ sunhim.sun_path[sizeof(sunhim.sun_path) - 1] = '\0';
addr = (struct sockaddr *) &sunhim;
addrlen = strlen(sunhim.sun_path) + 2;
goto ready;
@@ -620,6 +621,7 @@
if (service[0] == '/') {
/* UNIX Domain socket */
strncpy(sunme.sun_path, service, sizeof(sunme.sun_path));
+ sunme.sun_path[sizeof(sunme.sun_path) - 1] = '\0';
sunme.sun_family = AF_UNIX;
addr = (struct sockaddr *) &sunme;
addrlen = strlen(sunme.sun_path) + 2;
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