Commit c810b29a authored by Luka Stanisic's avatar Luka Stanisic

minor fix of the memcpy function call

parent 6b3a6071
......@@ -43,7 +43,7 @@ public:
const char* add(const char* strToCpy){
const size_t length = strlen(strToCpy);
char* cpy = new char[length+1];
memcpy(cpy, length, strToCpy, length);
memcpy(cpy, strToCpy, length);
cpy[length] = '\0';
names.push_back(cpy);
return cpy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment