From: Jay Soffian Date: Mon, 18 Feb 2008 14:38:48 GMT Subject: Re: [PATCH] branch: optionally setup branch.*.merge from upstream local branches Message-ID: <76718490802180638k6f776463t692a828f71ce0a58@mail.gmail.com> In-Reply-To: On Feb 18, 2008 9:05 AM, Johannes Schindelin wrote: > Hi, > > On Mon, 18 Feb 2008, Jay Soffian wrote: > > > Incorporated Johannes' second round of feedback. > > Not exactly. Heh... > This looks completely different than what I commented on. And my comments > suggested a different solution. Thought process went like this: - fix sprintf() to use snprintf() - notice setup_tracking() uses sprintf() and think about fixing it too - realize setup_tracking() does bounds checking first and its use of sprintf() is therefor safe. - go to copy the bounds checking code from setup_tracking() to the area you commented on. - realized duplicating the code was dumb and I could just re-use what was already in setup_tracking() via what was just sent. > But you can use the time to write some tests ;-) Sure I can. I really hope after all this work the patch gets accepted. j.