diff options
Diffstat (limited to 'pppd/eap.c')
-rw-r--r-- | pppd/eap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |