diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-11-08 14:58:46 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-11-08 14:59:32 +0000 |
commit | dd57e3334404381f94ac082bf16f0fa4833e5b9b (patch) | |
tree | 96730b154393d5b8d50e176481989f570ac4ed06 /platform/x11 | |
parent | 148341aff5bdc2678239383001328fa8010f2fe9 (diff) | |
download | mupdf-dd57e3334404381f94ac082bf16f0fa4833e5b9b.tar.xz |
Use fz_snprintf in preference to snprintf.
If nothing else, this avoids warnings on VS2005.
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/curl_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/curl_stream.c b/platform/x11/curl_stream.c index e70607d5..05a9b14a 100644 --- a/platform/x11/curl_stream.c +++ b/platform/x11/curl_stream.c @@ -305,7 +305,7 @@ fetch_chunk(curl_stream_state *state) state->complete = 1; if (state->content_length > 0 && end >= state->content_length) end = state->content_length-1; - snprintf(text, 32, "%d-%d", start, end); + fz_snprintf(text, 32, "%d-%d", start, end); curl_easy_setopt(state->handle, CURLOPT_RANGE, text); ret = curl_easy_perform(state->handle); if (ret != CURLE_OK) |