WuBingzheng / libleak

detect memory leak by LD_PRELOAD, without changing the target program
249 stars 52 forks source link

Should use "%zu" for printf of size_t values #7

Closed rbenet-lbo closed 4 years ago

rbenet-lbo commented 5 years ago

When doing printf of size_t struct members, you are currently using %ld, instead you should use %zu (as per C99)

WuBingzheng commented 4 years ago

Thanks.