aboutsummaryrefslogtreecommitdiffstats
path: root/driver.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 /driver.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 'driver.c')
-rw-r--r--driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index f3145be2..647b777e 100644
--- a/driver.c
+++ b/driver.c
@@ -1104,22 +1104,22 @@ static int do_session(
if (h_errno != 0)
{
if (h_errno == HOST_NOT_FOUND)
- strcpy(errbuf, GT_("host is unknown."));
+ strlcpy(errbuf, GT_("host is unknown."), sizeof(errbuf));
#ifndef __BEOS__
else if (h_errno == NO_ADDRESS)
- strcpy(errbuf, GT_("name is valid but has no IP address."));
+ strlcpy(errbuf, GT_("name is valid but has no IP address."), sizeof(errbuf));
#endif
else if (h_errno == NO_RECOVERY)
- strcpy(errbuf, GT_("unrecoverable name server error."));
+ strlcpy(errbuf, GT_("unrecoverable name server error."), sizeof(errbuf));
else if (h_errno == TRY_AGAIN)
- strcpy(errbuf, GT_("temporary name server error."));
+ strlcpy(errbuf, GT_("temporary name server error."), sizeof(errbuf));
else
snprintf (errbuf, sizeof(errbuf),
GT_("unknown DNS error %d."), h_errno);
}
else
#endif /* HAVE_RES_SEARCH */
- strcpy(errbuf, strerror(err_no));
+ strlcpy(errbuf, strerror(err_no), sizeof(errbuf));
report_complete(stderr, ": %s\n", errbuf);
#ifdef __UNUSED