Commit 473920ea authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Extra LF is not needed.

parent fb1d67f0
......@@ -43,10 +43,9 @@ char buffer[1000];
int handle_cmd(char *command)
{
strncpy(buffer, command, 998);
buffer[998] = 0;
buffer[strlen(buffer) + 1] = 0;
buffer[strlen(buffer)] = '\n';
strncpy(buffer, command, 999);
buffer[999] = 0;
buffer[strlen(buffer)] = 0;
rb = strlen(buffer);
printf("Handling command rb = %d\n", rb);
......
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