aboutsummaryrefslogtreecommitdiff
path: root/src/hash/xor.c
diff options
context:
space:
mode:
authorame <[email protected]>2023-11-05 01:06:23 -0600
committerame <[email protected]>2023-11-05 01:06:23 -0600
commit2b4f5bdf9ee42d321c2904da9595c11f9a7c592b (patch)
treefe559ba7857d6dad1171571c265d88e99edde10a /src/hash/xor.c
parent0e4aeb5ee6878c74f8116b0719a90e167d17c6b4 (diff)
tests & hash fixes
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;