From bebb93a423a9f6bc7a2b7a610548da6ceaacee97 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Apr 2012 01:49:22 +0300 Subject: Fix compilation with manaserv support. --- src/utils/sha256.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp index a56f6ec9a..21ded486b 100644 --- a/src/utils/sha256.cpp +++ b/src/utils/sha256.cpp @@ -279,7 +279,7 @@ std::string SHA256Hash(const char *src, int len) unsigned char bytehash[SHA256_DIGEST_SIZE]; SHA256Context ctx; SHA256Init(&ctx); - SHA256Update(&ctx, static_cast(src), + SHA256Update(&ctx, (unsigned char *)(src), static_cast(len)); SHA256Final(&ctx, bytehash); // Convert it to hex -- cgit v1.2.3-70-g09d2