summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/sudo.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-04-01 15:47:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-04-01 15:47:52 +0000
commit0f0320977668a926234f5cc958ed172f06a079cc (patch)
tree7366c9cfc43f81af9d30981b724c526a1e33cc38 /usr.bin/sudo/sudo.c
parentb23d0a6ace6e60935c0cec247e465c2e4bbd0527 (diff)
Update to sudo 1.6.7p1; fixes false positives in the oflow detection
of expand_prompt() introduced in sudo 1.6.7.
Diffstat (limited to 'usr.bin/sudo/sudo.c')
-rw-r--r--usr.bin/sudo/sudo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sudo/sudo.c b/usr.bin/sudo/sudo.c
index eb0b8a83c5c..d053eabadb6 100644
--- a/usr.bin/sudo/sudo.c
+++ b/usr.bin/sudo/sudo.c
@@ -98,7 +98,7 @@
#include "version.h"
#ifndef lint
-static const char rcsid[] = "$Sudo: sudo.c,v 1.333 2003/03/15 20:31:01 millert Exp $";
+static const char rcsid[] = "$Sudo: sudo.c,v 1.334 2003/04/01 15:02:49 millert Exp $";
#endif /* lint */
/*
@@ -613,7 +613,7 @@ init_vars(sudo_mode)
user_args = (char *) emalloc(size);
for (to = user_args, from = NewArgv + 1; *from; from++) {
n = strlcpy(to, *from, size - (to - user_args));
- if (n >= size) {
+ if (n >= size - (to - user_args)) {
(void) fprintf(stderr,
"%s: internal error, init_vars() overflow\n", Argv[0]);
exit(1);