summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-24 15:51:43 -0700
committerGitHub <noreply@github.com>2024-04-24 15:51:43 -0700
commitfc4c242442510fb97c3cfbf04d7582ebbc3bb0ed (patch)
tree0c19f6974dad99cbe1faa24b1aba41d0780008da /external
parent211b2ffc20d7798cab0b8483ccc3ec2b7ade49ab (diff)
Fix macos CI and clang warnings. (#4019)
* Fix macos CI. * Fix. * Fix. * Fix. * Fix clang warnings. * Fix more warnings.
Diffstat (limited to 'external')
-rw-r--r--external/stb/stb_image_write.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/stb/stb_image_write.h b/external/stb/stb_image_write.h
index e4b32ed1b..151eacaac 100644
--- a/external/stb/stb_image_write.h
+++ b/external/stb/stb_image_write.h
@@ -773,7 +773,7 @@ static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, f
#ifdef __STDC_LIB_EXT1__
len = sprintf_s(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
#else
- len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
+ len = snprintf(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
#endif
s->func(s->context, buffer, len);