From 1631f2faf86436314fe4270035680bfce961504c Mon Sep 17 00:00:00 2001 From: jesusc Date: Mon, 25 Aug 2003 16:13:07 +0000 Subject: [PATCH] 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 --- as/mcs51/lklibr.c | 2 +- link/z80/lklibr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.47.2