============ Cbuf_AddText Adds command text at the end of the buffer, does NOT add a final \n ============ */
| 90 | ============ |
| 91 | */ |
| 92 | void Cbuf_AddText( const char *text ) { |
| 93 | int l; |
| 94 | |
| 95 | l = strlen (text); |
| 96 | |
| 97 | if (cmd_text.cursize + l >= cmd_text.maxsize) |
| 98 | { |
| 99 | Com_Printf ("Cbuf_AddText: overflow\n"); |
| 100 | return; |
| 101 | } |
| 102 | Com_Memcpy(&cmd_text.data[cmd_text.cursize], text, l); |
| 103 | cmd_text.cursize += l; |
| 104 | } |
| 105 | |
| 106 | |
| 107 | /* |
no test coverage detected