summaryrefslogtreecommitdiff
path: root/src/remote.cc
diff options
context:
space:
mode:
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;