]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
README.md: various doc adjustments
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index 739d26bb050f2fe7d8f071a59a8da75667c13aac..a3a6d9268601045bd102472293893308021bc966 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1308,7 +1308,7 @@ Key_Message (cmd_state_t *cmd, int key, int ascii)
        if (key == K_ENTER || key == K_KP_ENTER || ascii == 10 || ascii == 13)
        {
                if(chat_mode < 0)
-                       Cmd_ExecuteString(cmd, chat_buffer, src_local, true); // not Cbuf_AddText to allow semiclons in args; however, this allows no variables then. Use aliases!
+                       Cmd_ExecuteString(cmd, chat_buffer, strlen(chat_buffer), src_local, true); // not Cbuf_AddText to allow semiclons in args; however, this allows no variables then. Use aliases!
                else
                        CL_ForwardToServer(va(vabuf, sizeof(vabuf), "%s %s", chat_mode ? "say_team" : "say ", chat_buffer));