Permalink
Browse files

Workaround for the red code example in our sources (looks like it's c…

  • Loading branch information...
1 parent 61495bb commit 9315aed345dc7a5afeb9fff5523e381b343f6e77 @Alefas Alefas committed Feb 25, 2014
@@ -71,9 +71,9 @@ trait RemoteResourceOwner {
}
protected def createChunks(command: String, args: Seq[String]): Seq[Chunk] = {
- args.map(s => Chunk(NGConstants.CHUNKTYPE_ARGUMENT, toBytes(s))) :+
- Chunk(NGConstants.CHUNKTYPE_WORKINGDIRECTORY, toBytes(currentDirectory)) :+
- Chunk(NGConstants.CHUNKTYPE_COMMAND, toBytes(command))
+ args.map(s => Chunk(NGConstants.CHUNKTYPE_ARGUMENT.toChar, toBytes(s))) :+
+ Chunk(NGConstants.CHUNKTYPE_WORKINGDIRECTORY.toChar, toBytes(currentDirectory)) :+
+ Chunk(NGConstants.CHUNKTYPE_COMMAND.toChar, toBytes(command))
}
private def toBytes(s: String) = s.getBytes

0 comments on commit 9315aed

Please sign in to comment.