From 5e039fd68056bbd00febf5fe753ca2bc8d9c789a Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 22 Aug 2013 14:45:18 +0000 Subject: [PATCH] fix bug in Crypto_RetrieveLocalKey From: Jan Behrens git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11998 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=fa69b3e45b5cf486826fcb9d5865159706c6f0e9 --- crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.c b/crypto.c index 2baa5a97..622e5a39 100644 --- a/crypto.c +++ b/crypto.c @@ -735,7 +735,7 @@ int Crypto_RetrieveLocalKey(int keyid, char *keyfp, size_t keyfplen, char *idfp, strlcpy(keyfp, pubkeys_fp64[keyid], keyfplen); if(idfp) if(pubkeys_havepriv[keyid]) - strlcpy(idfp, pubkeys_priv_fp64[keyid], keyfplen); + strlcpy(idfp, pubkeys_priv_fp64[keyid], idfplen); if(issigned) *issigned = pubkeys_havesig[keyid]; return 1; -- 2.39.2