Update of /cvsroot/jake2/jake2/src/jake2/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4361/src/jake2/server
Modified Files:
SV_MAIN.java
Log Message:
bugfixes in remote command execution
Index: SV_MAIN.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/server/SV_MAIN.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** SV_MAIN.java 1 Jul 2005 14:20:55 -0000 1.11
--- SV_MAIN.java 16 Dec 2005 21:17:51 -0000 1.12
***************
*** 437,454 ****
}
! /*
! * =============== SVC_RemoteCommand
! *
* A client issued an rcon command. Shift down the remaining args Redirect
! * all printfs ===============
*/
public static void SVC_RemoteCommand() {
int i;
- //char remaining[1024];
String remaining;
i = Rcon_Validate();
! String msg = new String(Globals.net_message.data, 4, -1);
if (i == 0)
--- 437,451 ----
}
! /**
* A client issued an rcon command. Shift down the remaining args Redirect
! * all printfs fromt hte server to the client.
*/
public static void SVC_RemoteCommand() {
int i;
String remaining;
i = Rcon_Validate();
! String msg = Lib.CtoJava(Globals.net_message.data, 4, 1024);
if (i == 0)
***************
*** 461,466 ****
Com.BeginRedirect(Defines.RD_PACKET, SV_SEND.sv_outputbuf,
Defines.SV_OUTPUTBUF_LENGTH, new Com.RD_Flusher() {
! public void rd_flush(int target, byte[] buffer) {
! SV_SEND.SV_FlushRedirect(target, buffer);
}
});
--- 458,463 ----
Com.BeginRedirect(Defines.RD_PACKET, SV_SEND.sv_outputbuf,
Defines.SV_OUTPUTBUF_LENGTH, new Com.RD_Flusher() {
! public void rd_flush(int target, StringBuffer buffer) {
! SV_SEND.SV_FlushRedirect(target, buffer.toString().getBytes());
}
});
|