From e75c38676017f8b686baaf3f261c31ce5f268a95 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sat, 30 Sep 2017 19:25:06 +0300 Subject: [PATCH] Avoid 'Symbol not found: _sprintf_s' on 'from PIL import _webp' --- _webp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_webp.c b/_webp.c index 5e5eedaad..8d9804117 100644 --- a/_webp.c +++ b/_webp.c @@ -45,9 +45,9 @@ PyObject* HandleMuxError(WebPMuxError err, char* chunk) { // Create the error message if (chunk == NULL) { - message_len = sprintf_s(message, 100, "could not assemble chunks: %s", kErrorMessages[-err]); + message_len = sprintf(message, "could not assemble chunks: %s", kErrorMessages[-err]); } else { - message_len = sprintf_s(message, 100, "could not set %.4s chunk: %s", chunk, kErrorMessages[-err]); + message_len = sprintf(message, "could not set %.4s chunk: %s", chunk, kErrorMessages[-err]); } if (message_len < 0) { PyErr_SetString(PyExc_RuntimeError, "failed to construct error message");