libfreerdp-crypto: fix issue #625 (crypto_cert_fingerprint)

This commit is contained in:
Marc-André Moreau 2012-07-22 12:52:55 -04:00
parent fffc6297a0
commit 495aba9a39
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ char* crypto_cert_fingerprint(X509* xcert)
for (i = 0; i < (int) (fp_len - 1); i++)
{
sprintf(p, "%02x:", fp[i]);
p = &fp_buffer[i * 3];
p = &fp_buffer[(i + 1) * 3];
}
sprintf(p, "%02x", fp[i]);