diff --git a/src/vmime/net/pop3/POP3Folder.cpp b/src/vmime/net/pop3/POP3Folder.cpp index 116157e6..56aeae6e 100644 --- a/src/vmime/net/pop3/POP3Folder.cpp +++ b/src/vmime/net/pop3/POP3Folder.cpp @@ -672,7 +672,7 @@ shared_ptr POP3Folder::getStatus() if (count > oldCount) { std::vector nums; - nums.reserve(count - oldCount); + nums.resize(count - oldCount); for (int i = oldCount + 1, j = 0 ; i <= count ; ++i, ++j) nums[j] = i;