Re: [PATCH] Rework strbuf API and semantics.
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Sep 4, 2007, 17:18 UTC
- Message-ID
- <16188017-44C2-4854-8EF5-23271E8091BA@wincent.com>
- In-Reply-To
- <20070904161843.GB3381@artemis.corp>
El 4/9/2007, a las 18:18, Pierre Habouzit escribió:
Show 9 quoted lines
> ooooh, now I'm guilty of not knowing all git APIs very well
> yet :) Indeed,
> this should just be:
>
> void strbuf_grow(struct strbuf *sb, size_t extra) {
> if (sb->len + extra + 1 < sb->len)
> die("you want to use way to much memory");
> ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
> }"too much memory", not "to much memory"
Cheers, Wincent