X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit-tree.c;h=ac431febe9052109d52bfa556ee04b2ef7715f01;hb=bcee6fd8e7164aa7a4170f109af8347d88f0175e;hp=352ded104cb33c1a9f4626cc89017a8c77c7e089;hpb=bf16c71e2f9fc9ca44273f7f4637dce194a49cce;p=git.git diff --git a/commit-tree.c b/commit-tree.c index 352ded10..ac431feb 100644 --- a/commit-tree.c +++ b/commit-tree.c @@ -41,7 +41,7 @@ static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...) alloc = (size + 32767) & ~32767; buf = *bufp; if (newsize > alloc) { - alloc = (newsize + 32767) & ~32767; + alloc = (newsize + 32767) & ~32767; buf = realloc(buf, alloc); *bufp = buf; } @@ -135,7 +135,7 @@ int main(int argc, char **argv) fprintf(stderr, "Committing initial tree %s\n", argv[1]); pw = getpwuid(getuid()); if (!pw) - usage("You don't exist. Go away!"); + die("You don't exist. Go away!"); realgecos = pw->pw_gecos; len = strlen(pw->pw_name); memcpy(realemail, pw->pw_name, len);