Skip to content

Commit

Permalink
Fix a bug found by @rperrot
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Apr 22, 2016
1 parent 249be41 commit 35c81ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/third_party/CppUnitLite/SimpleString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ SimpleString::SimpleString (const SimpleString& other)

SimpleString & SimpleString::operator= (const SimpleString& other)
{
delete buffer;
delete []buffer;
buffer = new char [other.size() + 1];
strcpy(buffer, other.buffer);
strcpy(buffer, other.buffer);
return *this;
}

Expand Down

0 comments on commit 35c81ca

Please sign in to comment.