Revision: 75732
          http://sourceforge.net/p/brlcad/code/75732
Author:   starseeker
Date:     2020-05-07 18:34:58 +0000 (Thu, 07 May 2020)
Log Message:
-----------
fixes

Modified Paths:
--------------
    brlcad/branches/bioh/src/libbu/whereami.c

Modified: brlcad/branches/bioh/src/libbu/whereami.c
===================================================================
--- brlcad/branches/bioh/src/libbu/whereami.c   2020-05-07 18:30:48 UTC (rev 
75731)
+++ brlcad/branches/bioh/src/libbu/whereami.c   2020-05-07 18:34:58 UTC (rev 
75732)
@@ -24,6 +24,7 @@
 #include <string.h>
 
 #include "bu/app.h"
+#include "bu/file.h"
 #include "bu/log.h"
 #include "bu/str.h"
 #include "bu/vls.h"
@@ -735,13 +736,13 @@
         }
        bu_vls_sprintf(&epath, "%s", fullpath);
     } else {
-       bu_vls_sprintf(&epath, pname);
+       bu_vls_sprintf(&epath, "%s", pname);
     }
 
     int length = bu_vls_strlen(&epath);
     if (length <= capacity) {
 
-       memcpy(out, epath, length);
+       memcpy(out, bu_vls_cstr(&epath), length);
 
        if (dirname_length) {
            int i;

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to