From: divverent Date: Thu, 22 Aug 2013 14:45:18 +0000 (+0000) Subject: fix bug in Crypto_RetrieveLocalKey X-Git-Tag: xonotic-v0.8.0~139 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5e039fd68056bbd00febf5fe753ca2bc8d9c789a;p=xonotic%2Fdarkplaces.git 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 --- 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;