Skip to content

Commit 9626074

Browse files
committed
Add missing "%" format specifier to format strings
D'oh - still getting to grips with these format specifier macros!
1 parent 85d436d commit 9626074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

saxbospiral/render_backends/backend_pbm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ sxbp_status_t sxbp_render_backend_pbm(
6666
// these are used to keep track of how many digits each is
6767
int width_string_length, height_string_length = 0;
6868
// convert width and height to a decimal string, store lengths
69-
width_string_length = sprintf(width_string, PRIu64, bitmap.width);
70-
height_string_length = sprintf(height_string, PRIu64, bitmap.height);
69+
width_string_length = sprintf(width_string, "%" PRIu64, bitmap.width);
70+
height_string_length = sprintf(height_string, "%" PRIu64, bitmap.height);
7171
/*
7272
* now that we know the length of the image dimension strings, we can now
7373
* calculate how much memory we'll have to allocate for the image buffer

0 commit comments

Comments
 (0)