summaryrefslogtreecommitdiff
path: root/src/remote.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-02-05 09:27:22 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-02-10 09:44:42 +0000
commit8d37a716fbf83cd58a026d70a293cb30f972ecaa (patch)
tree050dbb7e18abcfcf711cf64700611353337c2eda /src/remote.cc
parent87769c9b03b516053249f86355a4e503a529c659 (diff)
Use a custom SSO aware string backend
Diffstat (limited to 'src/remote.cc')
-rw-r--r--src/remote.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.cc b/src/remote.cc
index ca9e987c..e2756ef1 100644
--- a/src/remote.cc
+++ b/src/remote.cc
@@ -164,7 +164,7 @@ String read<String>(int socket)
String res;
if (length > 0)
{
- res.resize((int)length);
+ res.force_size((int)length);
read(socket, &res[0_byte], (int)length);
}
return res;