I'm pretty sure this is already fixed in develop, but who knows.

This commit is contained in:
Enno Rehling 2015-08-07 00:09:18 +02:00
parent e8fa654a38
commit af8a24e214
1 changed files with 0 additions and 4 deletions

View File

@ -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;