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

2015-09-16 Thread Junio C Hamano
Jeff King 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

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

2015-09-15 Thread Jeff King
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