Revision: 58841
          http://sourceforge.net/p/brlcad/code/58841
Author:   starseeker
Date:     2013-12-05 22:13:21 +0000 (Thu, 05 Dec 2013)
Log Message:
-----------
Couple more C++ tweaks for libbu

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

Modified: brlcad/trunk/src/libbu/mappedfile.c
===================================================================
--- brlcad/trunk/src/libbu/mappedfile.c 2013-12-05 22:13:00 UTC (rev 58840)
+++ brlcad/trunk/src/libbu/mappedfile.c 2013-12-05 22:13:21 UTC (rev 58841)
@@ -110,14 +110,14 @@
                if ((size_t)sb.st_size != mp->buflen) {
                    bu_log("bu_open_mapped_file(%s) WARNING: File size changed 
from %ld to %ld, opening new version.\n", real_path, mp->buflen, sb.st_size);
                    /* mp doesn't reflect the file any longer.  Invalidate. */
-                   mp->appl = "__STALE__";
+                   mp->appl = bu_strdup("__STALE__");
                    /* Can't invalidate old copy, it may still be in use. */
                    break;
                }
                if (sb.st_mtime != mp->modtime) {
                    bu_log("bu_open_mapped_file(%s) WARNING: File modified 
since last mapped, opening new version.\n", real_path);
                    /* mp doesn't reflect the file any longer.  Invalidate. */
-                   mp->appl = "__STALE__";
+                   mp->appl = bu_strdup("__STALE__");
                    /* Can't invalidate old copy, it may still be in use. */
                    break;
                }

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


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to