jeremycw / httpserver.h

Single header library for writing non-blocking HTTP servers in C
MIT License
1.78k stars 143 forks source link

fix a nasty bug of _grwprintf() #69

Open nu774 opened 1 year ago

nu774 commented 1 year ago

Fixes two bugs in _grwprintf(), causing bogus output when context buffer is full.

  1. You cannot reuse va_list without copying with va_copy().
  2. "bytes +=" line is simply incorrect.