From: Jeff King Date: Thu, 24 Sep 2015 21:07:12 +0000 (-0400) Subject: ref-filter: drop sprintf and strcpy calls X-Git-Tag: v2.7.0-rc0~87^2~40 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a5e03bf5c686e9f2da5e94e091e0ea531d40c6b8?hp=a5e03bf5c686e9f2da5e94e091e0ea531d40c6b8 ref-filter: drop sprintf and strcpy calls The ref-filter code comes from for-each-ref, and inherited a number of raw sprintf and strcpy calls. These are generally all safe, as we custom-size the buffers, or are formatting numbers into sufficiently large buffers. But we can make the resulting code even simpler and more obviously correct by using some of our helper functions. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---