diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-30 00:35:20 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-30 00:35:20 +0000 |
commit | 6639dfcf3d8bb983d248c697d9c9d6adb4350920 (patch) | |
tree | a872d5a87277c8b20a209a714d03c94095b96493 /driver.c | |
parent | 39748b973691feacdea50448cbfdabdc5ab624e5 (diff) | |
download | fetchmail-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |