diff options
author | Jim Meyering <jim@meyering.net> | 2003-08-17 16:03:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-08-17 16:03:42 +0000 |
commit | 7cea88478707a4ed438fbd17ac3ca2371d3328ee (patch) | |
tree | 600cd0d1bb1e5b0993a90ed349e5885058a4ea18 /src | |
parent | c3796f404a02e9a3a33c83ab74fae3c8b96d2a25 (diff) | |
download | coreutils-7cea88478707a4ed438fbd17ac3ca2371d3328ee.tar.xz |
Avoid unnecessary and sometimes time-consuming hostname lookups.
(print_entry): Likewise.
This fixes a typo I introduced in who-users.c on 1996-02-23.
Diffstat (limited to 'src')
-rw-r--r-- | src/pinky.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pinky.c b/src/pinky.c index 827112a2a..77aad7e5f 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -1,5 +1,5 @@ /* GNU's pinky. - Copyright (C) 1992-1997, 1999-2002 Free Software Foundation, Inc. + Copyright (C) 1992-1997, 1999-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -259,7 +259,7 @@ print_entry (const STRUCT_UTMP *utmp_ent) ut_host[sizeof (utmp_ent->ut_host)] = '\0'; /* Look for an X display. */ - display = strrchr (ut_host, ':'); + display = strchr (ut_host, ':'); if (display) *display++ = '\0'; |