From 02e48af08f727db4a086b40ae49faef5c8a09a29 Mon Sep 17 00:00:00 2001 From: "Anton E. Gavrilov" Date: Sun, 18 Jun 2000 12:38:37 +0000 Subject: [PATCH] Nothing really important --- source/keys.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/keys.c b/source/keys.c index 06b83c2..f9eb590 100644 --- a/source/keys.c +++ b/source/keys.c @@ -404,9 +404,10 @@ no_lf: if (clipText) { textCopied = malloc(GlobalSize(th)+1); strcpy(textCopied, clipText); - /* Substitutes a NULL for every token */strtok(textCopied, "\n\r\b"); + /* Substitutes a NULL for every token */ + strtok(textCopied, "\n\r\b"); i = strlen(textCopied); - if (i + strlen(key_lines[edit_line]) >= MAXCMDLINE-1) + if (i + strlen(key_lines[edit_line]) > MAXCMDLINE-1) i = MAXCMDLINE-1 - strlen(key_lines[edit_line]); if (i > 0) { // insert the string @@ -752,12 +753,12 @@ void Key_Init (void) // // register our functions // - Cmd_AddCommand ("bind",Key_Bind_f); - Cmd_AddCommand ("unbind",Key_Unbind_f); - Cmd_AddCommand ("unbindall",Key_Unbindall_f); + Cmd_AddCommand ("bind", Key_Bind_f); + Cmd_AddCommand ("unbind", Key_Unbind_f); + Cmd_AddCommand ("unbindall", Key_Unbindall_f); cl_chatmode = Cvar_Get ("cl_chatmode", "2", 0, - "Controls when console text will be treated as a chat message" + "Controls when console text will be treated as a chat message\n" "0 - never, 1 - always, 2 - smart"); }