Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 09 / MyString (with move) / MyString.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Sem. 09/MyString (with move)/MyString.cpp2
diff --git a/Sem. 09/MyString (with move)/MyString.cpp b/Sem. 09/MyString (with move)/MyString.cpp
index a037d3d..1ca4762 100644
--- a/Sem. 09/MyString (with move)/MyString.cpp
+++ b/Sem. 09/MyString (with move)/MyString.cpp
@@ -98,7 +98,7 @@ std::istream& operator>>(std::istream& stream, MyString& str)
{
delete[] str.str;
char buff[1024];
- stream >> buff;
+ stream >> std::setw(1024) >> buff;
str.size = strlen(buff);
str.str = new char[str.size + 1];