diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-08-22 09:17:59 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-08-22 09:17:59 +0000 |
commit | a803e26dcdc6652b12d05f29bbd1b23c4b4239ed (patch) | |
tree | bc22d2a3d883c86bb5fce947e402cbb2b2c7aede /src/LYUtils.c | |
parent | 5cda0e8cde6b4ebb16f2968edf3734af7d9524ac (diff) | |
download | lynx-snapshots-a803e26dcdc6652b12d05f29bbd1b23c4b4239ed.tar.gz |
snapshot of project "lynx", label v2-9-0dev_2b
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r-- | src/LYUtils.c | 9 |
1 files changed, 5 insertions, 4 deletions
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 <HTUtils.h> #include <HTTCP.h> @@ -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 */ |