From 37ad399586328e579435f853e081da6f55f64ae1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 24 Jul 2017 12:25:50 +0100 Subject: [PATCH] More __mingw_snprintf fixes. --- src/decrypted_kdm.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc index 72070fe7..d0e2cc0d 100644 --- a/src/decrypted_kdm.cc +++ b/src/decrypted_kdm.cc @@ -101,7 +101,11 @@ string DecryptedKDM::get_uuid (unsigned char ** p) { char buffer[37]; +#ifdef LIBDCP_WINDOWS + __mingw_snprintf ( +#else snprintf ( +#endif buffer, sizeof(buffer), "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx", (*p)[0], (*p)[1], (*p)[2], (*p)[3], (*p)[4], (*p)[5], (*p)[6], (*p)[7], (*p)[8], (*p)[9], (*p)[10], (*p)[11], (*p)[12], (*p)[13], (*p)[14], (*p)[15] -- 2.30.2