summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-07-24 23:22:26 +0000
committerhubertf <hubertf@NetBSD.org>1998-07-24 23:22:26 +0000
commitf56e8bacb33e51e6214922b883303942fd51354a (patch)
treebe12ab46a3cd1023bf26869224d75ce9e032a1fd /atc
parent5c461fdd41017bc2bae63d35aae8aa33d76a5a45 (diff)
downloadbsdgames-darwin-f56e8bacb33e51e6214922b883303942fd51354a.tar.gz
bsdgames-darwin-f56e8bacb33e51e6214922b883303942fd51354a.tar.zst
bsdgames-darwin-f56e8bacb33e51e6214922b883303942fd51354a.zip
Log hostname, not OS - PR 5831 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'atc')
-rw-r--r--atc/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/log.c b/atc/log.c
index dd4db972..3782bf3e 100644
--- a/atc/log.c
+++ b/atc/log.c
@@ -1,4 +1,4 @@
-/* $NetBSD: log.c,v 1.6 1997/10/11 02:01:02 lukem Exp $ */
+/* $NetBSD: log.c,v 1.7 1998/07/24 23:22:26 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: log.c,v 1.6 1997/10/11 02:01:02 lukem Exp $");
+__RCSID("$NetBSD: log.c,v 1.7 1998/07/24 23:22:26 hubertf Exp $");
#endif
#endif not lint
@@ -157,7 +157,7 @@ log_score(list_em)
}
strcpy(thisscore.name, pw->pw_name);
uname(&name);
- strncpy(thisscore.host, name.sysname, sizeof(thisscore.host)-1);
+ strncpy(thisscore.host, name.nodename, sizeof(thisscore.host)-1);
thisscore.host[sizeof(thisscore.host) - 1] = '\0';
cp = strrchr(file, '/');