Jeff King <peff@xxxxxxxx> 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 <peff@xxxxxxxx> > --- > ref-filter.c | 70 +++++++++++++++++++----------------------------------------- > 1 file changed, 22 insertions(+), 48 deletions(-) The end result indeed is much easier to read. Looks good. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html