summaryrefslogtreecommitdiff
path: root/drivers/gles3/rasterizer_storage_gles3.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-10-06 08:35:43 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-10-07 14:50:14 +0200
commitd65afb2c7474f4f7b19aacc74dd3956ee491c60b (patch)
tree79c0d2f4a5378a97535e35df18533d09066b1033 /drivers/gles3/rasterizer_storage_gles3.cpp
parentf8020bc9766e7641fb3e53101bd6d85494e7fa41 (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 'drivers/gles3/rasterizer_storage_gles3.cpp')
0 files changed, 0 insertions, 0 deletions