aboutsummaryrefslogtreecommitdiff
path: root/src/hash/xor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash/xor.c')
-rw-r--r--src/hash/xor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash/xor.c b/src/hash/xor.c
index a2c1b0b..5fe23b7 100644
--- a/src/hash/xor.c
+++ b/src/hash/xor.c
@@ -19,7 +19,7 @@ int l_xor8(lua_State* L){
char digest[8];
uint8_t u = i_xor8(a, len);
- sprintf(digest,"%x",u);
+ sprintf(digest,"%02x",u);
lua_pushstring(L, digest);
return 1;