[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
atrun s/strncpy/strlcpy/ + grammar
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: atrun s/strncpy/strlcpy/ + grammar
- From: jsyn <jsyn_(_at_)_nthought_(_dot_)_com>
- Date: Mon, 2 Jul 2001 12:21:16 -0500
Minor atrun changes (s/strncpy/strlcpy/ + grammar).
jsyn
--- libexec/atrun/atrun.c.orig Mon Jul 2 01:25:49 2001
+++ libexec/atrun/atrun.c Mon Jul 2 09:45:38 2001
@@ -373,8 +373,8 @@ main(argc, argv)
char *argv[];
{
/*
- * Browse through _PATH_ATJOBS, checking all the jobfiles wether
- * they should be executed and or deleted. The queue is coded into
+ * Browse through _PATH_ATJOBS, checking all the jobfiles to determine
+ * if they should be executed and/or deleted. The queue is coded into
* the first byte of the job filename, the date (in minutes since
* Eon) as a hex number in the following eight bytes, followed by
* a dot and a serial number. A file which has not been executed
@@ -483,7 +483,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;
Visit your host, monkey.org