From a190416448603cf3a2faa1aa4baa85b2013cd1b6 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Wed, 28 Feb 2024 20:48:02 +0000 Subject: [PATCH] -Fixed bug where some commands were terminated with \r\r instead of \r\n git-svn-id: svn://kolibrios.org@9981 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/ircc/ircc.asm | 2 +- programs/network/ircc/userparser.inc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/network/ircc/ircc.asm b/programs/network/ircc/ircc.asm index 373ff02447..bda27bd0a0 100644 --- a/programs/network/ircc/ircc.asm +++ b/programs/network/ircc/ircc.asm @@ -13,7 +13,7 @@ ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -version equ '0.35b' +version equ '0.35c' ; connection status STATUS_DISCONNECTED = 0 diff --git a/programs/network/ircc/userparser.inc b/programs/network/ircc/userparser.inc index 712aed8d26..fee60495e1 100644 --- a/programs/network/ircc/userparser.inc +++ b/programs/network/ircc/userparser.inc @@ -23,7 +23,7 @@ user_parser: mov esi, input_text mov edi, user_command call recode ; Convert to UTF-8 - mov word[edi], 0x0a0d ; terminate the line + mov byte[edi], 0x0 ; Terminate string with \0 sub edi, user_command mov [user_command.size], edi @@ -658,9 +658,9 @@ cmd_usr_send: mov esi, [user_command.size] mov eax, [user_command.size] - add eax, user_command+1 + add eax, user_command mov word[eax], 0x0a0d - inc esi + inc esi ; Skip / add \r\n mcall send, [socketnum], user_command+1, , 0 ret