From a803e26dcdc6652b12d05f29bbd1b23c4b4239ed Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 22 Aug 2019 09:17:59 +0000 Subject: snapshot of project "lynx", label v2-9-0dev_2b --- src/LYUtils.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/LYUtils.c') diff --git a/src/LYUtils.c b/src/LYUtils.c index c6c6b06a..0152ec72 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYUtils.c,v 1.294 2019/08/16 22:44:10 tom Exp $ + * $LynxId: LYUtils.c,v 1.296 2019/08/22 09:17:59 tom Exp $ */ #include #include @@ -2967,13 +2967,14 @@ BOOLEAN inlocaldomain(void) break; } if (ulen > strlen(LYLocalDomain) && - STREQ(LYLocalDomain, - me.ut_host + ulen - strlen(LYLocalDomain))) { + !memcmp(LYLocalDomain, + me.ut_host + ulen - strlen(LYLocalDomain), + ulen)) { result = TRUE; } #ifdef LINUX /* Linux fix to check for local user. J.Cullen 11Jul94 */ - else if (strlen(me.ut_host) == 0) { + else if (ulen == 0) { result = TRUE; } #endif /* LINUX */ -- cgit 1.4.1-2-gfad0