From 2db204e6a2b6eda4e17597e720c44fb78807b71b Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 29 Dec 2019 01:45:13 +0100 Subject: [PATCH] Fix resizing bug. --- src/mastoapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mastoapi.cpp b/src/mastoapi.cpp index 60980e2..07024af 100644 --- a/src/mastoapi.cpp +++ b/src/mastoapi.cpp @@ -83,7 +83,7 @@ void MastoAPI::post_item(const Item &item) const auto pos = status.rfind(' '); if (pos != string::npos) { - status.resize(status.size() - pos); + status.resize(pos); } status.append(omission);