Browse Source

fixed onXML

Nicolas Cannasse 17 years ago
parent
commit
322ddc9ecb
2 changed files with 2 additions and 1 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 1 1
      std/neko/net/ThreadRemotingServer.hx

+ 1 - 0
doc/CHANGES.txt

@@ -8,6 +8,7 @@ TODO inlining : substitute class+function type parameters in order to have fully
 
 2008-??-??: 2.0
 	remove neko max array declaration (fixed in 1.7.0)
+	fixed neko.net.ThreadRemotingServer.onXML
 
 2008-04-05: 1.19
 	fixed flash9 Array.toString

+ 1 - 1
std/neko/net/ThreadRemotingServer.hx

@@ -54,7 +54,7 @@ class ThreadRemotingServer extends ThreadServer<haxe.remoting.SocketConnection,S
 			if( buf.charCodeAt(pos) != 60 )
 				throw "Invalid remoting message '"+buf.substr(pos,len)+"'";
 			// XML handling
-			var p = buf.indexOf("\\0",pos);
+			var p = buf.indexOf("\x00",pos);
 			if( p == -1 || p >= len )
 				return null;
 			p -= pos;