From 7bfc6bf54a5131fda767e3b4e15c07bad779d9c9 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 27 May 2011 01:48:31 +0000 Subject: [PATCH] Pass socket into recv_file() --- exec/load/cvslib.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exec/load/cvslib.js b/exec/load/cvslib.js index 9b6d1e1e60..76c158e1ce 100644 --- a/exec/load/cvslib.js +++ b/exec/load/cvslib.js @@ -220,9 +220,9 @@ CVS = new (function () { return ret; } - function recv_file() { - var length=parseInt(this.socket.recvline()); - return this.socket.recv(length); + function recv_file(socket) { + var length=parseInt(socket.recvline()); + return socket.recv(length); } for(;;) { @@ -250,7 +250,7 @@ CVS = new (function () { var repofile=this.socket.recvline(65535,10); var entries=this.socket.recvline(65535,10); var mode=this.socket.recvline(65535,10); - var filedata=recv_file(); + var filedata=recv_file(this.socket); this.files[repofile]={}; this.files[repofile].meta={}; @@ -274,7 +274,7 @@ CVS = new (function () { log(LOG_INFO, cmd[1]); break; case 'MT': - var m=cmd[1].split_cmd(' ',2); + var m=split_cmd(cmd[1],2); switch(m[0]) { case 'newline': if(js.global.writeln) -- GitLab