From b9524e9c9dc98a17f09986ff7ab319114f81aebe Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 20 May 2016 18:12:53 -0400 Subject: Fixed error with replying to tweets --- ebooks.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ebooks.cpp b/ebooks.cpp index ebb944a..593f2fe 100644 --- a/ebooks.cpp +++ b/ebooks.cpp @@ -59,6 +59,7 @@ int main(int argc, char** args) { std::lock_guard stats_lock(stats_mutex); doc += stats->randomSentence(140 - doc.length()); + doc.resize(140); } twitter::tweet tw; -- cgit 1.4.1