aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-30 00:35:20 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-30 00:35:20 +0000
commit6639dfcf3d8bb983d248c697d9c9d6adb4350920 (patch)
treea872d5a87277c8b20a209a714d03c94095b96493 /rfc822.c
parent39748b973691feacdea50448cbfdabdc5ab624e5 (diff)
downloadfetchmail-6639dfcf3d8bb983d248c697d9c9d6adb4350920.tar.gz
fetchmail-6639dfcf3d8bb983d248c697d9c9d6adb4350920.tar.bz2
fetchmail-6639dfcf3d8bb983d248c697d9c9d6adb4350920.zip
strcpy -> strlcpy, strcat -> strlcat
svn path=/trunk/; revision=4186
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rfc822.c b/rfc822.c
index 99c78c0e..0fdc6a5a 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -432,13 +432,13 @@ int main(int argc, char *argv[])
while (fgets(buf, sizeof(buf)-1, stdin))
{
if (buf[0] == ' ' || buf[0] == '\t')
- strcat(longbuf, buf);
+ strlcat(longbuf, buf, sizeof(longbuf));
else if (!strncasecmp("From: ", buf, 6)
|| !strncasecmp("To: ", buf, 4)
|| !strncasecmp("Reply-", buf, 6)
|| !strncasecmp("Cc: ", buf, 4)
|| !strncasecmp("Bcc: ", buf, 5))
- strcpy(longbuf, buf);
+ strlcpy(longbuf, buf, sizeof(longbuf));
else if (longbuf[0])
{
if (verbose)