Skip to content

Commit

Permalink
fixup! Fix some clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
etang-cw committed Oct 19, 2023
1 parent 90d97e6 commit 3342f94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external/stb/stb_image_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ 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);
if (len > sizeof(buffer) - 1)
len = sizeof(buffer) - 1;
#endif
s->func(s->context, buffer, len);

Expand Down

0 comments on commit 3342f94

Please sign in to comment.