]> git.gag.com Git - fw/sdcc/blobdiff - as/mcs51/lklibr.c
Check for '.' in filename only, not the whole path.
[fw/sdcc] / as / mcs51 / 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);
                        }