diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-10-06 08:35:43 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-10-07 14:50:14 +0200 |
commit | d65afb2c7474f4f7b19aacc74dd3956ee491c60b (patch) | |
tree | 79c0d2f4a5378a97535e35df18533d09066b1033 /core/oa_hash_map.h | |
parent | f8020bc9766e7641fb3e53101bd6d85494e7fa41 (diff) |
Fix LWSClient connect_to_host string termination.
Coming from strncpy might get you a non-NULL terminated buffer.
The solution, if you accept trunction, is to give one less byte to
strncpy and manually set the last char in the buffer to '\0'.
If the source string is shorter, than the buffer is padded with '\0'
automatically.
Diffstat (limited to 'core/oa_hash_map.h')
0 files changed, 0 insertions, 0 deletions