Commit 147f3f2e authored by John van Groningen's avatar John van Groningen
Browse files

don't overwrite first byte of next node in the heap with a '\0'

in function get_command
parent e4704548
......@@ -106,8 +106,6 @@ int get_command (CleanString cleanString)
log ("%s\n", command_buffer);
strncpy (cleanString->chars, command_buffer, cleanString->length);
cleanString->chars [cleanString->length] = '\0';
return (0);
Supports Markdown
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