Revision: 45854
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45854&view=rev
Author:   starseeker
Date:     2011-08-09 21:08:02 +0000 (Tue, 09 Aug 2011)

Log Message:
-----------
Generalize bu_basename with the BU_DIR_SEPARATOR variable

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

Modified: brlcad/trunk/src/libbu/basename.c
===================================================================
--- brlcad/trunk/src/libbu/basename.c   2011-08-09 20:34:10 UTC (rev 45853)
+++ brlcad/trunk/src/libbu/basename.c   2011-08-09 21:08:02 UTC (rev 45854)
@@ -38,13 +38,13 @@
 
     /* Skip leading '/'s */
     while (*p != '\0')
-       if (*p++ == '/' && *p != '/' && *p != '\0')
+       if (*p++ == BU_DIR_SEPARATOR && *p != BU_DIR_SEPARATOR && *p != '\0')
            str = p;
 
     len = strlen(str);
     
     /* Remove trailing '/'s */
-    while (len > 1 && str[len - 1] == '/')
+    while (len > 1 && str[len - 1] == BU_DIR_SEPARATOR)
        len--;
     
     /* Create a new string */


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

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to