summaryrefslogtreecommitdiff
path: root/usr.sbin/ac
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-14 20:26:52 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-14 20:26:52 +0000
commit3f6dabb23b9b0a793be312d74907f2690d6d4a03 (patch)
treefe88f4f4011eb74a8965d1ccbfae3b7de460085e /usr.sbin/ac
parentea69190efb81118c6827f1f3eb1ca635f6ed5231 (diff)
Notes
Diffstat (limited to 'usr.sbin/ac')
-rw-r--r--usr.sbin/ac/ac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index 2d6831511217..bf98701a813f 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -14,7 +14,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: ac.c,v 1.1.1.1 1994/05/18 08:00:45 csgr Exp $";
+static char rcsid[] = "$Id: ac.c,v 1.1 1994/09/26 22:12:27 davidg Exp $";
#endif
#include <sys/types.h>
@@ -195,7 +195,7 @@ update_user(head, name, secs)
struct user_list *up;
for (up = head; up != NULL; up = up->next) {
- if (strncmp(up->name, name, sizeof (up->name)) == 0) {
+ if (strncmp(up->name, name, UT_NAMESIZE) == 0) {
up->secs += secs;
Total += secs;
return head;