From: Alex Riesen Date: Wed, 05 Sep 2007 21:18:38 GMT Subject: Re: People unaware of the importance of "git gc"? Message-ID: <20070905211838.GB3770@steel.home> In-Reply-To: <7vr6lcj2zi.fsf@gitster.siamese.dyndns.org> Junio C Hamano, Wed, Sep 05, 2007 22:01:37 +0200: > + /* > + * Quickly check if a "gc" is needed, by estimating how > + * many loose objects there are. Because SHA-1 is evenly > + * distributed, we can check only one and get a reasonable > + * estimate. > + */ :)) > + if (sizeof(path) <= snprintf(path, sizeof(path), "%s/17", objdir)) { > + warning("insanely long object directory %.*s", 50, objdir); or a non-POSIX snprintf returning "negative value" (Microsoft)