aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/hashes.c
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-27 17:12:05 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-27 17:12:05 +0000
commite6297e237d1407a5a5cf83f312cfbea1e2371e6e (patch)
tree15b0e3e298cf7bd60a37e4bc15f3b7fa5e2d15de /util-src/hashes.c
parent6953a3a15ec57e841daaa340dc31754301dc951c (diff)
parentf33e9646043c0a00f6d6f03fcdde9726d7123581 (diff)
downloadprosody-e6297e237d1407a5a5cf83f312cfbea1e2371e6e.tar.gz
prosody-e6297e237d1407a5a5cf83f312cfbea1e2371e6e.zip
Merge from waqas
Diffstat (limited to 'util-src/hashes.c')
-rw-r--r--util-src/hashes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c
index f57e6b55..41cf6f50 100644
--- a/util-src/hashes.c
+++ b/util-src/hashes.c
@@ -26,7 +26,7 @@ static int myFunc(lua_State *L) { \
int hex_out = lua_toboolean(L, 2); \
char hash[size]; \
char result[size*2]; \
- func(s, len, hash); \
+ func((const unsigned char*)s, len, (unsigned char*)hash); \
if (hex_out) { \
toHex(hash, size, result); \
lua_pushlstring(L, result, size*2); \