From bedb024261f6539d0517430e88cfaa1e78e6e955 Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 30 Aug 2024 16:04:43 +0300 Subject: Changed readme --- windows_client/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'windows_client/client.c') diff --git a/windows_client/client.c b/windows_client/client.c index 521dd0f..0388e34 100644 --- a/windows_client/client.c +++ b/windows_client/client.c @@ -211,14 +211,14 @@ static int fill_in_buffer(struct client *cl, int *data_size, /* the data has not yet been entered up to the newline character */ if(!end_status && input_status) { for(; (key = _getch()) != '\r'; ) { - if(key == back && buffer_idx > 0) { + if(key == backspace && buffer_idx > 0) { --buffer_idx; cl->buffer[buffer_idx] = '\0'; - putchar(back); + putchar(backspace); putchar(' '); - putchar(back); + putchar(backspace); continue; - } else if(key == back) + } else if(key == backspace) continue; cl->buffer[buffer_idx] = key; ++buffer_idx; -- cgit v1.2.3