From: Linus Torvalds Date: Thu, 04 May 2006 01:27:09 GMT Subject: Re: sha1_to_hex() usage cleanup Message-ID: In-Reply-To: <7v1wvabp7a.fsf@assigned-by-dhcp.cox.net> On Wed, 3 May 2006, Junio C Hamano wrote: > > Makes sort of sense in that the callers still need to be aware > of the magic 4 limit but as long as they are they do not have to > worry about allocation/deallocation/copying. But is that kind > of cheat maintainable? I dunno. If we just tell people that the rule is that it's still a statically allocated buffer, but that you can magically use two "sha1_to_hex()" calls in the same printf(), we'll probably get a good mix of "usable and safe". Linus