diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/telnet/telnet/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/telnet/telnet/commands.c b/crypto/telnet/telnet/commands.c index 282695c..2c7beca 100644 --- a/crypto/telnet/telnet/commands.c +++ b/crypto/telnet/telnet/commands.c @@ -2900,12 +2900,12 @@ cmdrc(m1, m2) int gotmachine = 0; int l1 = strlen(m1); int l2 = strlen(m2); - char m1save[64]; + char m1save[MAXHOSTNAMELEN]; if (skiprc) return; - strcpy(m1save, m1); + strlcpy(m1save, m1, sizeof(m1save)); m1 = m1save; if (rcname == 0) { |