diff options
| author | ame <[email protected]> | 2024-04-05 17:34:39 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-05 17:34:39 -0500 |
| commit | f5d49966a4faa3bfff25e7bdeb262c2d9853cd3a (patch) | |
| tree | 25b83526a8c8b057cf9493542fb650ead921d9f3 /src/hash/crc.c | |
| parent | 7e6d58c143e1f3b1384ca2e798825ff3ed9469ec (diff) | |
fix warnings
Diffstat (limited to 'src/hash/crc.c')
| -rw-r--r-- | src/hash/crc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/crc.c b/src/hash/crc.c index 7d9c41f..71047cc 100644 --- a/src/hash/crc.c +++ b/src/hash/crc.c @@ -116,8 +116,8 @@ int l_crc32_final(lua_State* L){ struct crc32_hash* a = (struct crc32_hash*)lua_touserdata(L, -1); uint32_t u = crc32_final(a); - char digest[8]; - sprintf(digest,"%08lx",u); + char digest[32]; + sprintf(digest,"%08x",u); lua_pushstring(L, digest); return 1; } |
