SyntaxFix
Write A Post
Hire A Developer
Questions
Sounds like you're expecting size_t to be the same as unsigned long (possibly 64 bits) when it's actually an unsigned int (32 bits). Try using %zu in both cases.
size_t
unsigned long
unsigned int
%zu
I'm not entirely certain though.