diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-19 15:13:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-19 15:13:44 +0000 |
commit | 136a8fc3558a2072bbfb6a43b0e68a5d31c51fad (patch) | |
tree | 41e50d5c0ac8ca2dd8c47e31fd0b93543ad3363f /usr.bin/sudo | |
parent | 04609c6ee5fd12235dc5fc6072e88a28c7e843d9 (diff) |
Update to sudo-1.6.3p6
Diffstat (limited to 'usr.bin/sudo')
-rw-r--r-- | usr.bin/sudo/logging.c | 5 | ||||
-rw-r--r-- | usr.bin/sudo/version.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/sudo/logging.c b/usr.bin/sudo/logging.c index f735d1f22e9..327860bea0f 100644 --- a/usr.bin/sudo/logging.c +++ b/usr.bin/sudo/logging.c @@ -112,7 +112,8 @@ do_syslog(pri, msg) /* * Log the full line, breaking into multiple syslog(3) calls if necessary */ - for (p = msg, count = 0; count < strlen(msg) / MAXSYSLOGLEN + 1; count++) { + for (p = msg, count = 0; *p && count < strlen(msg) / MAXSYSLOGLEN + 1; + count++) { if (strlen(p) > MAXSYSLOGLEN) { /* * Break up the line into what will fit on one syslog(3) line @@ -135,7 +136,7 @@ do_syslog(pri, msg) *tmp = save; /* restore saved character */ /* Eliminate leading whitespace */ - for (p = tmp; *p != ' '; p++) + for (p = tmp; *p != ' ' && *p !='\0'; p++) ; } else { if (count == 0) diff --git a/usr.bin/sudo/version.h b/usr.bin/sudo/version.h index 38e5570ce0f..3e1f9534b16 100644 --- a/usr.bin/sudo/version.h +++ b/usr.bin/sudo/version.h @@ -37,6 +37,6 @@ #ifndef _SUDO_VERSION_H #define _SUDO_VERSION_H -static const char version[] = "1.6.3p5"; +static const char version[] = "1.6.3p6"; #endif /* _SUDO_VERSION_H */ |