diff --git a/src/cli.c b/src/cli.c index cf9d149..cc39cac 100644 --- a/src/cli.c +++ b/src/cli.c @@ -360,7 +360,7 @@ void connectedCommandLine(int sockfd) break; // Delete next char - sendBuff[++curPosition] = 0; + sendBuff[curPosition] = 0; curLineLength--; if (curLineLength >= 0) { @@ -379,7 +379,10 @@ void connectedCommandLine(int sockfd) ); printf("%s", C_RESTORE_CURSORPOS); - printf("%s", C_CURSORRIGHT); + // printf("%s", C_CURSORRIGHT); + } + else { + printf("%s", C_CURSORRIGHT); // pas sûr que ce soit utile... } } break;