-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
This commit is contained in:
hidnplayr 2024-02-28 20:48:02 +00:00
parent e102235346
commit a190416448
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
;; ;; ;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
version equ '0.35b' version equ '0.35c'
; connection status ; connection status
STATUS_DISCONNECTED = 0 STATUS_DISCONNECTED = 0

View File

@ -23,7 +23,7 @@ user_parser:
mov esi, input_text mov esi, input_text
mov edi, user_command mov edi, user_command
call recode ; Convert to UTF-8 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 sub edi, user_command
mov [user_command.size], edi mov [user_command.size], edi
@ -658,9 +658,9 @@ cmd_usr_send:
mov esi, [user_command.size] mov esi, [user_command.size]
mov eax, [user_command.size] mov eax, [user_command.size]
add eax, user_command+1 add eax, user_command
mov word[eax], 0x0a0d mov word[eax], 0x0a0d
inc esi inc esi ; Skip / add \r\n
mcall send, [socketnum], user_command+1, , 0 mcall send, [socketnum], user_command+1, , 0
ret ret