From: jesusc Date: Mon, 25 Aug 2003 16:13:07 +0000 (+0000) Subject: Check for '.' in filename only, not the whole path. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=1631f2faf86436314fe4270035680bfce961504c;p=fw%2Fsdcc Check for '.' in filename only, not the whole path. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2852 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/as/mcs51/lklibr.c b/as/mcs51/lklibr.c index 32c22d57..21cd004c 100644 --- a/as/mcs51/lklibr.c +++ b/as/mcs51/lklibr.c @@ -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); } diff --git a/link/z80/lklibr.c b/link/z80/lklibr.c index be82f7bc..c712d674 100644 --- a/link/z80/lklibr.c +++ b/link/z80/lklibr.c @@ -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 */