diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 21:07:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 21:07:39 +0000 |
commit | 84f6ecf088bd5356c0e5c071092b7e0693ff97b7 (patch) | |
tree | 18f2287c692619d004b43665d9056cf05c8ac2ac /usr.bin/skeyinit/skeyinit.c | |
parent | 6f05ee42af70f0074bf9b3c005c0e8d4f0c6be35 (diff) |
strlcpy; ok millert
Diffstat (limited to 'usr.bin/skeyinit/skeyinit.c')
-rw-r--r-- | usr.bin/skeyinit/skeyinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c index d45401a742e..f6c44726904 100644 --- a/usr.bin/skeyinit/skeyinit.c +++ b/usr.bin/skeyinit/skeyinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeyinit.c,v 1.41 2002/11/16 23:05:36 millert Exp $ */ +/* $OpenBSD: skeyinit.c,v 1.42 2003/04/06 21:07:38 deraadt Exp $ */ /* OpenBSD S/Key (skeyinit.c) * @@ -81,7 +81,7 @@ main(int argc, char **argv) if ((pp = getpwuid(getuid())) == NULL) err(1, "no user with uid %u", getuid()); - (void)strcpy(me, pp->pw_name); + (void)strlcpy(me, pp->pw_name, sizeof me); if ((pp = getpwnam(me)) == NULL) err(1, "Who are you?"); |