kentonv/capnproto — pull request #48 by dwrensha (2013-11-22 00:30:11+00:00)
Title: remove superfluous null terminator

`sizeof(URL_PREFIX)` counts the null terminator, so `result.initUrl(urlSize + sizeof(URL_PREFIX))` allocates one more byte than is needed.

By coincidence, making this change does *not* actually lower the byte throughput in this benchmark case, because of the way the modular arithmetic works out during the pseudorandom number generation.