blob: a558b6e11e06016b5c281c4839165b68dbe41f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ak,v 1.3 2007/01/06 22:45:49 wiz Exp $
--- src/exec.c.orig 2006-09-30 10:13:00.000000000 +0200
+++ src/exec.c
@@ -123,7 +123,7 @@ myexecvp(char *a, char **args)
/* execute the program or shell script */
execvp(a, args); /* returns only on failure */
- sprintf(msg, "\nCannot exec %s", a);
+ (void) sprintf(msg, sizeof(msg), "\nCannot exec %s", a);
perror(msg); /* display the reason */
askforreturn(); /* wait until the user sees the message */
myexit(1); /* exit the child */
|