summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2004-07-03 05:11:33 +0000
committerdtucker <dtucker@openbsd.org>2004-07-03 05:11:33 +0000
commit48b23033f730f2bbecf349d0a62adb062224b249 (patch)
tree385f38efe404a8986288a496bd666d743a71bce7
parentsync (diff)
downloadwireguard-openbsd-48b23033f730f2bbecf349d0a62adb062224b249.tar.xz
wireguard-openbsd-48b23033f730f2bbecf349d0a62adb062224b249.zip
Use '\0' not 0 for string; ok djm@, deraadt@
-rw-r--r--usr.bin/ssh/sshlogin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshlogin.c b/usr.bin/ssh/sshlogin.c
index 1130a1d43ea..e7bf2efdd85 100644
--- a/usr.bin/ssh/sshlogin.c
+++ b/usr.bin/ssh/sshlogin.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshlogin.c,v 1.8 2004/06/21 17:36:31 avsm Exp $");
+RCSID("$OpenBSD: sshlogin.c,v 1.9 2004/07/03 05:11:33 dtucker Exp $");
#include <util.h>
#include <utmp.h>
@@ -74,7 +74,7 @@ get_last_login_time(uid_t uid, const char *logname,
if (bufsize > sizeof(ll.ll_host) + 1)
bufsize = sizeof(ll.ll_host) + 1;
strncpy(buf, ll.ll_host, bufsize - 1);
- buf[bufsize - 1] = 0;
+ buf[bufsize - 1] = '\0';
return ll.ll_time;
}