summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/do_command.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2000-08-21 21:08:55 +0000
committerderaadt <deraadt@openbsd.org>2000-08-21 21:08:55 +0000
commitf5e9cd7ed3bb4d1b6da4c36b6026abadd8dffea7 (patch)
treea4010b1542ad29878d1265eea3220f352b52c5a7 /usr.sbin/cron/do_command.c
parentcorrect tmp file path; solar@false.com (diff)
downloadwireguard-openbsd-f5e9cd7ed3bb4d1b6da4c36b6026abadd8dffea7.tar.xz
wireguard-openbsd-f5e9cd7ed3bb4d1b6da4c36b6026abadd8dffea7.zip
snprintf sprinkles; solar@false.com & I
Diffstat (limited to 'usr.sbin/cron/do_command.c')
-rw-r--r--usr.sbin/cron/do_command.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c
index 872a1345265..2e3e008e22d 100644
--- a/usr.sbin/cron/do_command.c
+++ b/usr.sbin/cron/do_command.c
@@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$Id: do_command.c,v 1.8 2000/08/20 18:42:42 millert Exp $";
+static char rcsid[] = "$Id: do_command.c,v 1.9 2000/08/21 21:08:56 deraadt Exp $";
#endif
@@ -36,7 +36,6 @@ static char rcsid[] = "$Id: do_command.c,v 1.8 2000/08/20 18:42:42 millert Exp $
static void child_process __P((entry *, user *)),
do_univ __P((user *));
-
void
do_command(e, u)
entry *e;
@@ -479,7 +478,7 @@ child_process(e, u)
if (mailto && status) {
char buf[MAX_TEMPSTR];
- sprintf(buf,
+ snprintf(buf, sizeof buf,
"mailed %d byte%s of output but got status 0x%04x\n",
bytes, (bytes==1)?"":"s",
status);