From: Jan Behrens Date: Sun, 18 Aug 2013 15:43:02 +0000 (+0200) Subject: Revert to old semantics, just fix the bug X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fzykure%2Ffixes;p=xonotic%2Fdarkplaces.git Revert to old semantics, just fix the bug --- diff --git a/crypto.c b/crypto.c index 25900136..a3bbb746 100644 --- a/crypto.c +++ b/crypto.c @@ -731,9 +731,9 @@ int Crypto_RetrieveLocalKey(int keyid, char *keyfp, size_t keyfplen, char *idfp, *idfp = 0; if(!pubkeys[keyid]) return -1; - if(keyfplen) + if(keyfp) strlcpy(keyfp, pubkeys_fp64[keyid], keyfplen); - if(idfplen) + if(idfp) if(pubkeys_havepriv[keyid]) strlcpy(idfp, pubkeys_priv_fp64[keyid], idfplen); if(issigned)