Return to log.c CVS log | Up to [cvs.NetBSD.org] / src / games / atc |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.12, 2003/08/07 09:36:54 | version 1.13, 2004/09/07 13:20:39 | ||
---|---|---|---|
|
|
||
} | } | ||
strcpy(thisscore.name, pw->pw_name); | strcpy(thisscore.name, pw->pw_name); | ||
uname(&name); | uname(&name); | ||
strncpy(thisscore.host, name.nodename, sizeof(thisscore.host)-1); | strlcpy(thisscore.host, name.nodename, sizeof(thisscore.host)); | ||
thisscore.host[sizeof(thisscore.host) - 1] = '\0'; | |||
cp = strrchr(file, '/'); | cp = strrchr(file, '/'); | ||
if (cp == NULL) { | if (cp == NULL) { |