Subject: Re: [PATCH 30/67] ref-filter: drop sprintf and strcpy calls

From: Junio C Hamano <[email-masked]>
Date: Wed, 16 Sep 2015 12:33:16 -0700

Jeff King <[email-masked]> writes:

> 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 <[email-masked]>
> ---
>  ref-filter.c | 70 +++++++++++++++++++-----------------------------------------
>  1 file changed, 22 insertions(+), 48 deletions(-)

The end result indeed is much easier to read.  Looks good.