Skip to content

Commit

Permalink
Merge pull request #1 from hugovk/monolithlabs-animated_webp-sprintf
Browse files Browse the repository at this point in the history
Avoid 'Symbol not found: _sprintf_s' on 'from PIL import _webp'
  • Loading branch information
jd20 committed Oct 1, 2017
2 parents c9258d6 + e75c386 commit 8e207d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8e207d5

Please sign in to comment.