OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_anal.c versions 1.8 and 1.9
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_anal.c 1.8 -> 1.9

--- rc_anal.c    2002/06/28 17:43:23     1.8
+++ rc_anal.c    2002/08/01 08:55:05     1.9
@@ -130,7 +130,8 @@
         if (*(kszPathexpr + strlen(kszPathexpr)) != '/') {
             (*ppInst)->m_szLocs = malloc(strlen(kszPathexpr) + 2 * sizeof(char));
             strcpy((*ppInst)->m_szLocs, kszPathexpr);
-            strcat((*ppInst)->m_szLocs, "/");
+            if ((char)*((*ppInst)->m_szLocs + strlen((*ppInst)->m_szLocs) - 1) != '/')
+                strcat((*ppInst)->m_szLocs, "/");
         }
         else
             (*ppInst)->m_szLocs = strdup(kszPathexpr);

CVSTrac 2.0.1