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 /kerberos.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 'kerberos.c')
-rw-r--r-- | kerberos.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -146,13 +146,13 @@ int do_rfc1731(int sock, char *command, char *truename) report(stderr, GT_("non-null instance (%s) might cause strange behavior\n"), tktinst); - strcat(tktuser, "."); - strcat(tktuser, tktinst); + strlcat(tktuser, ".", sizeof(tktuser)); + strlcat(tktuser, tktinst, sizeof(tktuser)); } if (strcmp(tktrealm, srvrealm) != 0) { - strcat(tktuser, "@"); - strcat(tktuser, tktrealm); + strlcat(tktuser, "@", sizeof(tktuser)); + strlcat(tktuser, tktrealm, sizeof(tktuser)); } result = krb_mk_req(&authenticator, "imap", srvinst, srvrealm, |