Marcela Mašláňová bf7489
--- at-3.1.10/atrun.8.in.typo	2005-08-29 10:08:41.000000000 +0200
Marcela Mašláňová bf7489
+++ at-3.1.10/atrun.8.in	2006-09-12 09:56:54.000000000 +0200
Marcela Mašláňová bf7489
@@ -11,7 +11,7 @@
Marcela Mašláňová bf7489
 .B atrun
Marcela Mašláňová bf7489
 runs jobs queued by
Marcela Mašláňová bf7489
 .BR at(1) .
Marcela Mašláňová bf7489
-It is a shell script containing invoking
Marcela Mašláňová bf7489
+It is a shell script invoking
Marcela Mašláňová bf7489
 .B @sbindir@/atd
Marcela Mašláňová bf7489
 with the
Marcela Mašláňová bf7489
 .I -s
Marcela Mašláňová bf7489
--- at-3.1.10/atd.c.typo	2006-09-12 09:56:54.000000000 +0200
Marcela Mašláňová bf7489
+++ at-3.1.10/atd.c	2006-09-12 10:00:10.000000000 +0200
Marcela Mašláňová bf7489
@@ -363,7 +363,7 @@
Marcela Mašláňová bf7489
     }
cvsdist a34e68
     if (buf.st_nlink > 2) {
Marcela Mašláňová bf7489
 	unlink( newname );
cvsdist a34e68
-	perr("Someboy is trying to run a linked script for job %8lu (%.500s)",
cvsdist a34e68
+	perr("Somebody is trying to run a linked script for job %8lu (%.500s)",
Marcela Mašláňová bf7489
 	     jobno, filename);
cvsdist a34e68
     }
Marcela Mašláňová bf7489
     if ((fflags = fcntl(fd_in, F_GETFD)) < 0) {
Marcela Mašláňová bf7489
@@ -849,6 +849,7 @@
cvsdist a34e68
 		 * Let's remove the lockfile and reschedule.
cvsdist a34e68
 		 */
cvsdist a34e68
 		strncpy(lock_name, dirent->d_name, sizeof(lock_name));
cvsdist a34e68
+		lock_name[sizeof(lock_name)-1] = '\0';
cvsdist a34e68
 		lock_name[0] = '=';
cvsdist a34e68
 		unlink(lock_name);
cvsdist a34e68
 		next_job = now;
Marcela Mašláňová bf7489
@@ -865,7 +866,7 @@
Marcela Mašláňová bf7489
 	nothing_to_do = 0;
Marcela Mašláňová bf7489
 
cvsdist a34e68
 	/* There's a job for later.  Note its execution time if it's
cvsdist a34e68
-	 * the earlierst so far.
cvsdist a34e68
+	 * the earliest so far.
cvsdist a34e68
 	 */
cvsdist a34e68
 	if (run_time > now) {
cvsdist a34e68
 	    if (next_job > run_time) {
Marcela Mašláňová bf7489
@@ -883,6 +884,7 @@
cvsdist a34e68
 	    run_batch++;
cvsdist a34e68
 	    if (strcmp(batch_name, dirent->d_name) > 0) {
cvsdist a34e68
 		strncpy(batch_name, dirent->d_name, sizeof(batch_name));
cvsdist a34e68
+		batch_name[sizeof(batch_name)-1] = '\0';
cvsdist a34e68
 		batch_uid = buf.st_uid;
cvsdist a34e68
 		batch_gid = buf.st_gid;
cvsdist a34e68
 		batch_queue = queue;
Marcela Mašláňová bf7489
@@ -925,7 +927,7 @@
cvsdist a34e68
 int
cvsdist a34e68
 main(int argc, char *argv[])
cvsdist a34e68
 {
cvsdist a34e68
-/* Browse through  ATJOB_DIR, checking all the jobfiles wether they should
cvsdist a34e68
+/* Browse through  ATJOB_DIR, checking all the jobfiles whether they should
cvsdist a34e68
  * be executed and or deleted. The queue is coded into the first byte of
cvsdist a34e68
  * the job filename, the date (in minutes since Eon) as a hex number in the
cvsdist a34e68
  * following eight bytes, followed by a dot and a serial number.  A file