Re: [PATCH 06/10] diff.c: convert trivial snprintf calls to xsnprintf

2016-06-03 Thread Jeff King
On Fri, Jun 03, 2016 at 07:47:20AM +, Elia Pinto wrote: > diff.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/diff.c b/diff.c > index d3734d3..fb61539 100644 > --- a/diff.c > +++ b/diff.c > @@ -4491,7 +4491,7 @@ static int diff_get_patch_id(struct

[PATCH 06/10] diff.c: convert trivial snprintf calls to xsnprintf

2016-06-03 Thread Elia Pinto
With the commits f2f02675 and 5096d490 we have been converted in some files the call from snprintf/sprintf/strcpy to xsnprintf. This patch converts the remaining calls to snprintf with xsnprintf under the following conditions: - The call to snprintf does not control the outcome of the command