]> wimlib.net Git - wimlib/blobdiff - src/blob_table.c
Add and use SHA1_HASH_STRING_LEN constant
[wimlib] / src / blob_table.c
index 5c26e894aa9219d53c3da7957f50906b4672955c..cec5b4986337f3cc878963957cc687d2f616870b 100644 (file)
@@ -1275,7 +1275,7 @@ after_blob_hashed(struct blob_descriptor *blob,
                 * blob (from a stream) to point to the duplicate.  The caller
                 * is responsible for freeing @blob if needed.  */
                if (duplicate_blob->size != blob->size) {
-                       tchar hash_str[SHA1_HASH_SIZE * 2 + 1];
+                       tchar hash_str[SHA1_HASH_STRING_LEN];
 
                        sprint_hash(blob->hash, hash_str);
                        WARNING("SHA-1 collision at \"%"TS"\"\n"