diff options
| author | itojun <itojun@NetBSD.org> | 2003-05-17 22:57:30 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2003-05-17 22:57:30 +0000 |
| commit | 22795e9102bcc636fa2ba20545ed7ad0ca2dcc05 (patch) | |
| tree | 635f7a838e388fb503177fb9d0391800e29c5ff1 /libexec | |
| parent | 3e6b78200d39346dcf50e318f811cd0fb0b2db45 (diff) | |
use strlcpy
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/atrun/atrun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index 59204859aa2..ae9ea78f06e 100644 --- a/libexec/atrun/atrun.c +++ b/libexec/atrun/atrun.c @@ -1,4 +1,4 @@ -/* $NetBSD: atrun.c,v 1.12 2003/03/03 17:14:36 dsl Exp $ */ +/* $NetBSD: atrun.c,v 1.13 2003/05/17 22:57:30 itojun Exp $ */ /* * atrun.c - run jobs queued by at; run with root privileges. @@ -57,7 +57,7 @@ static char *namep; #if 0 static char rcsid[] = "$OpenBSD: atrun.c,v 1.7 1997/09/08 22:12:10 millert Exp $"; #else -__RCSID("$NetBSD: atrun.c,v 1.12 2003/03/03 17:14:36 dsl Exp $"); +__RCSID("$NetBSD: atrun.c,v 1.13 2003/05/17 22:57:30 itojun Exp $"); #endif static int debug = 0; @@ -478,7 +478,7 @@ main(argc, argv) if (isupper(queue) && (strcmp(batch_name, dirent->d_name) > 0)) { run_batch = 1; - (void)strncpy(batch_name, dirent->d_name, + (void)strlcpy(batch_name, dirent->d_name, sizeof(batch_name)); batch_uid = buf.st_uid; batch_gid = buf.st_gid; |
