summaryrefslogtreecommitdiff
path: root/pppd/eap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pppd/eap.c')
-rw-r--r--pppd/eap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pppd/eap.c b/pppd/eap.c
index 40f08b3..7015466 100644
--- a/pppd/eap.c
+++ b/pppd/eap.c
@@ -2654,7 +2654,7 @@ eap_response(eap_state *esp, u_char *inp, int id, int len)
char tmp[MAXNAMELEN+1];
strcpy(tmp, strrchr(rhostname, '\\') + 1);
- strcpy(rhostname, tmp);
+ strlcpy(rhostname, tmp, sizeof(rhostname));
}
if (chap_verify_hook)