summaryrefslogtreecommitdiff
path: root/lib/mlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlib.c')
-rw-r--r--lib/mlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mlib.c b/lib/mlib.c
index f8c4877d2..d74d25a50 100644
--- a/lib/mlib.c
+++ b/lib/mlib.c
@@ -176,7 +176,7 @@ off_t buffer_write(buffer_data_t data, void *buf, off_t length, const char *desc
unsigned char *hash = *ctx->hash = malloc(33);
MD5Final(digest, &ctx->ctx);
for (i = 0; i < 16; ++i) {
- sprintf(hash, "%02x", *p++);
+ sprintf((char *)hash, "%02x", *p++);
hash += 2;
}
*hash = 0;