forked from github/server
I'm pretty sure this is already fixed in develop, but who knows.
This commit is contained in:
parent
e8fa654a38
commit
af8a24e214
|
@ -12,10 +12,6 @@ int wrptr(char **ptr, size_t * size, size_t bytes)
|
||||||
if (bytes == 0) {
|
if (bytes == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (bytes < 0) {
|
|
||||||
*size = 0;
|
|
||||||
return EINVAL;
|
|
||||||
}
|
|
||||||
if (bytes <= *size) {
|
if (bytes <= *size) {
|
||||||
*ptr += bytes;
|
*ptr += bytes;
|
||||||
*size -= bytes;
|
*size -= bytes;
|
||||||
|
|
Loading…
Reference in New Issue