Fix redis error reporting 3546/head
authorest31 <MTest31@outlook.com>
Fri, 8 Jan 2016 14:37:11 +0000 (15:37 +0100)
committerest31 <MTest31@outlook.com>
Fri, 8 Jan 2016 14:37:11 +0000 (15:37 +0100)
commit57a461930ba13b0b499c334d77e4b6a0aa73606b
tree1b7f9fe43f55b1fea78f64af794b2c5d00ef8374
parent0bbbc6e13dc8180cf1d98f9866bc72a510162eb3
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.
src/database-redis.cpp