diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-27 17:12:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-27 17:12:05 +0000 |
commit | e6297e237d1407a5a5cf83f312cfbea1e2371e6e (patch) | |
tree | 15b0e3e298cf7bd60a37e4bc15f3b7fa5e2d15de /util-src/hashes.c | |
parent | 6953a3a15ec57e841daaa340dc31754301dc951c (diff) | |
parent | f33e9646043c0a00f6d6f03fcdde9726d7123581 (diff) | |
download | prosody-e6297e237d1407a5a5cf83f312cfbea1e2371e6e.tar.gz prosody-e6297e237d1407a5a5cf83f312cfbea1e2371e6e.zip |
Merge from waqas
Diffstat (limited to 'util-src/hashes.c')
-rw-r--r-- | util-src/hashes.c | 2 |
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); \
|