X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=console.c;h=bb9c277d7a7848429e6fd7f305c79d5166af2a4c;hb=1b6062f6c60a2525501e1133052d87307ee02e36;hp=d443dea45ce8ae3302701e4d78471523310bd33a;hpb=ced116bd186ded94c1487b51dad53dc6c313b2c9;p=xonotic%2Fdarkplaces.git diff --git a/console.c b/console.c index d443dea4..bb9c277d 100644 --- a/console.c +++ b/console.c @@ -901,7 +901,7 @@ void Con_Rcon_Redirect_Init(lhnetsocket_t *sock, lhnetaddress_t *dest, qboolean rcon_redirect_buffer[2] = 0; rcon_redirect_buffer[3] = 0; // this is a reply to a CCREQ_RCON - rcon_redirect_buffer[4] = CCREP_RCON; + rcon_redirect_buffer[4] = (char)CCREP_RCON; } else memcpy(rcon_redirect_buffer, "\377\377\377\377n", 5); // QW rcon print @@ -1127,7 +1127,7 @@ void Con_MaskPrint(int additionalmask, const char *msg) { *p = qfont_table[ch - 0xE000]; if(q > p+1) - memmove(p+1, q, strlen(q)); + memmove(p+1, q, strlen(q)+1); p = p + 1; } else @@ -2822,11 +2822,11 @@ void Con_CompleteCommandLine (void) } else { - stringlistsort(&resultbuf); // dirbuf is already sorted + stringlistsort(&resultbuf, true); // dirbuf is already sorted Con_Printf("\n%i possible filenames\n", resultbuf.numstrings + dirbuf.numstrings); for(i = 0; i < dirbuf.numstrings; ++i) { - Con_Printf("%s/\n", dirbuf.strings[i]); + Con_Printf("^4%s^7/\n", dirbuf.strings[i]); } for(i = 0; i < resultbuf.numstrings; ++i) {