Skip to content

Commit 9985c71

Browse files
authored
Merge pull request #942 from orgads/small-hash
c_rehash: fix hash_name output for small hashes
2 parents 5e5881d + fedb572 commit 9985c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/c_rehash.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def path(filename)
156156
end
157157

158158
def hash_name(name)
159-
sprintf("%x", name.hash)
159+
sprintf("%08x", name.hash)
160160
end
161161

162162
def fingerprint(der)

0 commit comments

Comments
 (0)