summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2015-06-02 20:15:26 +1000
committerDarren Tucker <dtucker@zip.com.au>2015-06-02 20:15:26 +1000
commitd7a58bbac6583e33fd5eca8e2c2cc70c57617818 (patch)
tree08a30f315ba94150edced89afa96e78a427ae62d
parent51a1c2115265c6e80ede8a5c9dccada9aeed7143 (diff)
Replace strcpy with strlcpy.
ok djm, sanity check by Corinna Vinschen.
-rw-r--r--openbsd-compat/bsd-cygwin_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-cygwin_util.c b/openbsd-compat/bsd-cygwin_util.c
index a2d82126d..8672ccf7f 100644
--- a/openbsd-compat/bsd-cygwin_util.c
+++ b/openbsd-compat/bsd-cygwin_util.c
@@ -68,7 +68,7 @@ cygwin_ssh_privsep_user()
68 if (cygwin_internal (CW_CYGNAME_FROM_WINNAME, "sshd", cyg_privsep_user, 68 if (cygwin_internal (CW_CYGNAME_FROM_WINNAME, "sshd", cyg_privsep_user,
69 sizeof cyg_privsep_user) != 0) 69 sizeof cyg_privsep_user) != 0)
70#endif 70#endif
71 strcpy (cyg_privsep_user, "sshd"); 71 strlcpy(cyg_privsep_user, "sshd", sizeof(cyg_privsep_user));
72 } 72 }
73 return cyg_privsep_user; 73 return cyg_privsep_user;
74} 74}