summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/error.c b/source/fitz/error.c
index b72e3d9a..eedc35bb 100644
--- a/source/fitz/error.c
+++ b/source/fitz/error.c
@@ -26,7 +26,7 @@ void fz_vwarn(fz_context *ctx, const char *fmt, va_list ap)
{
char buf[sizeof ctx->warn->message];
- vsnprintf(buf, sizeof buf, fmt, ap);
+ fz_vsnprintf(buf, sizeof buf, fmt, ap);
#ifdef USE_OUTPUT_DEBUG_STRING
OutputDebugStringA(buf);
OutputDebugStringA("\n");
@@ -164,7 +164,7 @@ const char *fz_caught_message(fz_context *ctx)
void fz_vthrow(fz_context *ctx, int code, const char *fmt, va_list ap)
{
ctx->error->errcode = code;
- vsnprintf(ctx->error->message, sizeof ctx->error->message, fmt, ap);
+ fz_vsnprintf(ctx->error->message, sizeof ctx->error->message, fmt, ap);
if (code != FZ_ERROR_ABORT)
{