From 7d26470ee1fb85f03bb276d8f3c244bca9c31914 Mon Sep 17 00:00:00 2001 From: stevewilliams Date: Thu, 9 Nov 2000 19:48:55 +0000 Subject: [PATCH] Handle . characters in library paths. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@494 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- as/mcs51/lklibr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/as/mcs51/lklibr.c b/as/mcs51/lklibr.c index e80fe02b..5e57c813 100644 --- a/as/mcs51/lklibr.c +++ b/as/mcs51/lklibr.c @@ -182,7 +182,7 @@ char *libfil; if (libfil[0] == '/') { libfil++; } #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) { @@ -398,7 +398,7 @@ char *name; } else { strcat(str,relfil); } - if(strchr(str,FSEPX) == NULL) { + if(strchr(relfil,FSEPX) == NULL) { sprintf(&str[strlen(str)], "%crel", FSEPX); } /*3*/ if ((fp = fopen(str, "r")) != NULL) { -- 2.47.2