Revision: 51706
          http://brlcad.svn.sourceforge.net/brlcad/?rev=51706&view=rev
Author:   starseeker
Date:     2012-07-29 20:48:29 +0000 (Sun, 29 Jul 2012)
Log Message:
-----------
make sure bu_progname is reset before we write the new name to it

Modified Paths:
--------------
    brlcad/trunk/src/libbu/progname.c

Modified: brlcad/trunk/src/libbu/progname.c
===================================================================
--- brlcad/trunk/src/libbu/progname.c   2012-07-29 19:52:05 UTC (rev 51705)
+++ brlcad/trunk/src/libbu/progname.c   2012-07-29 20:48:29 UTC (rev 51706)
@@ -206,6 +206,7 @@
 #endif
 
     if (argv0) {
+       memset(&bu_progname[0], '\0', sizeof(bu_progname));
        snprintf(bu_progname, MAXPATHLEN, "%s", argv0);
        if (strlen(bu_argv0_buffer) == 0)
            snprintf(bu_argv0_buffer, MAXPATHLEN, "%s", argv0);

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