Check for '.' in filename only, not the whole path.
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 25 Aug 2003 16:13:07 +0000 (16:13 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 25 Aug 2003 16:13:07 +0000 (16:13 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2852 4a8a32a2-be11-0410-ad9d-d568d2c75423

as/mcs51/lklibr.c
link/z80/lklibr.c

index 32c22d572deac2f5c6413f49601430e2c6ae93b4..21cd004c47693fc704a0397bf06883989240aeff 100644 (file)
@@ -916,7 +916,7 @@ int buildlibraryindex(void)
                                strcat(str,relfil);
                        }
 
-            if(strchr(str, FSEPX) == NULL)
+            if(strchr(relfil, FSEPX) == NULL)
             {
                                sprintf(&str[strlen(str)], "%crel", FSEPX);
                        }
index be82f7bca79900a644ea727df81020b37e680590..c712d6745f7cad74f7d3ca8914f818557a27ffe3 100644 (file)
@@ -777,7 +777,7 @@ int buildlibraryindex(void)
                                } else {
                                        strcat(str,relfil);
                                }
-                               if(strchr(str,FSEPX) == NULL) {
+                               if(strchr(relfil, FSEPX) == NULL) {
 #ifdef SDK
                                        sprintf(&str[strlen(str)], "%co", FSEPX);
 #else /* SDK */
@@ -1061,7 +1061,7 @@ char *name;
                    } else {
                        strcat(str,relfil);
                    }
-                   if(strchr(relfil,FSEPX) == NULL) {
+                   if(strchr(relfil, FSEPX) == NULL) {
 #ifdef SDK
                        sprintf(&str[strlen(str)], "%co", FSEPX);
 #else /* SDK */