a92d7b4517
Some security problems have been addressed, and overall stability has improved. There are no new features. (The security problems were already fixed in pkgsrc.)
13 lines
529 B
Text
13 lines
529 B
Text
$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 */
|