This makes them easier to parse without having to worry about
running off the end, and allows us to treat commits as normal
strings.
return NULL;
bytes = strlen(buffer) + 1;
return NULL;
bytes = strlen(buffer) + 1;
+ buf = xmalloc(1+*size);
memcpy(buf, buffer + bytes, stream.total_out - bytes);
bytes = stream.total_out - bytes;
memcpy(buf, buffer + bytes, stream.total_out - bytes);
bytes = stream.total_out - bytes;
while (inflate(&stream, Z_FINISH) == Z_OK)
/* nothing */;
}
while (inflate(&stream, Z_FINISH) == Z_OK)
/* nothing */;
}
inflateEnd(&stream);
return buf;
}
inflateEnd(&stream);
return buf;
}