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 --- kerberos.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kerberos.c') diff --git a/kerberos.c b/kerberos.c index cf600f29..2cbfe8c1 100644 --- a/kerberos.c +++ b/kerberos.c @@ -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, -- cgit v1.2.3