This commit is contained in:
huang_4115 2023-07-09 18:17:42 +08:00 committed by GitHub
commit b8a6425ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ static unsigned char* ensure(printbuffer * const p, size_t needed)
return NULL;
}
needed += p->offset + 1;
needed += p->offset;
if (needed <= p->length)
{
return p->buffer + p->offset;