From 6639dfcf3d8bb983d248c697d9c9d6adb4350920 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 30 Jul 2005 00:35:20 +0000 Subject: strcpy -> strlcpy, strcat -> strlcat svn path=/trunk/; revision=4186 --- pop3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index dd3daf27..b5d1a965 100644 --- a/pop3.c +++ b/pop3.c @@ -523,7 +523,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting) } #endif /* OPIE_ENABLE */ - strcpy(shroud, ctl->password); + strlcpy(shroud, ctl->password, sizeof(shroud)); ok = gen_transact(sock, "PASS %s", ctl->password); shroud[0] = '\0'; #ifdef SSL_ENABLE -- cgit v1.2.3