Skip to content

Commit fedb572

Browse files
committed
c_rehash: fix hash_name output for small hashes
The hash lookup is done by 8-character hash.
1 parent cfa82ab commit fedb572

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)