diff options
| author | Wladimir J. van der Laan <[email protected]> | 2019-09-30 12:27:27 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2020-02-06 13:24:40 +0100 |
| commit | b837b334db5dd6232725fd2350928ff4fbd3feee (patch) | |
| tree | a20d984e931bae8b2a7272977056743b25b19d3e /src/httpserver.h | |
| parent | Merge #17482: util: Disallow network-qualified command line options (diff) | |
| download | discoin-b837b334db5dd6232725fd2350928ff4fbd3feee.tar.xz discoin-b837b334db5dd6232725fd2350928ff4fbd3feee.zip | |
net: Fail instead of truncate command name in CMessageHeader
Replace the memset/strncpy dance in `CMessageHeader::CMessageHeader`
with explicit code that copies then name and asserts the length.
This removes a warning in g++ 9.1.1 and IMO makes the code more readable
by not relying on strncpy padding and silent truncation behavior.
Diffstat (limited to 'src/httpserver.h')
0 files changed, 0 insertions, 0 deletions