Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-06-20 18:18:26 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-06-20 18:18:26 +0400
commit01d802976fc89b97a5a67a0dacdaf414db2651ca (patch)
tree7255693399b625ff71355501a37061c4ce503c30 /source/blender/imbuf
parentfb7c71383b8c21d7ded739b553e6c11f66f166df (diff)
BLI_md5: add a utility function to 'translate' raw 16bytes digest into a nice 32chars hexadecimal string.
That kind of stuff belongs to BLI, not specialized code like thumbs.c
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/thumbs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index 236d41078d6..41784b1e448 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -258,9 +258,7 @@ static void thumbname_from_uri(const char *uri, char *thumb, const int thumb_len
md5_buffer(uri, strlen(uri), digest);
hexdigest[0] = '\0';
- to_hex_char(hexdigest, digest, 16);
- hexdigest[32] = '\0';
- BLI_snprintf(thumb, thumb_len, "%s.png", hexdigest);
+ BLI_snprintf(thumb, thumb_len, "%s.png", md5_to_hexdigest(digest, hexdigest));
// printf("%s: '%s' --> '%s'\n", __func__, uri, thumb);
}