diff options
author | est31 <MTest31@outlook.com> | 2016-01-08 15:37:11 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-01-08 15:37:11 +0100 |
commit | 57a461930ba13b0b499c334d77e4b6a0aa73606b (patch) | |
tree | 1b7f9fe43f55b1fea78f64af794b2c5d00ef8374 /builtin/game | |
parent | 0bbbc6e13dc8180cf1d98f9866bc72a510162eb3 (diff) | |
download | minetest-57a461930ba13b0b499c334d77e4b6a0aa73606b.tar.gz minetest-57a461930ba13b0b499c334d77e4b6a0aa73606b.tar.bz2 minetest-57a461930ba13b0b499c334d77e4b6a0aa73606b.zip |
Fix redis error reporting
Previously, we assumed that reply->str was NULL
terminated. However, this turned out to be not true,
as users reported crashes in strlen connected to
where reply->str was appended to an std::string.
Use the method recomended by the docs, to read the
length separately.
Diffstat (limited to 'builtin/game')
0 files changed, 0 insertions, 0 deletions