z80 library paths may contain '.' now
[fw/sdcc] / link / z80 / lklibr.c
index 7fd9f3defcbbbcdb0eb846961a77ede0fb769df9..dac07b42d9666e131fefa24bd688def7ac7d1738 100644 (file)
@@ -229,7 +229,7 @@ char *libfil;
 #endif /* SDK */
 #endif
        strcat(str,libfil);
-       if(strchr(str,FSEPX) == NULL) {
+       if(strchr(libfil,FSEPX) == NULL) {
                sprintf(&str[strlen(str)], "%clib", FSEPX);
        }
        if ((fp = fopen(str, "r")) != NULL) {