From 4102ea30c36d202b9690335c282808ef91b05567 Mon Sep 17 00:00:00 2001 From: "Antonio M. Amaya" Date: Fri, 15 Nov 2013 18:28:00 +0100 Subject: [PATCH] Bug 939116 - Apply the TCPSocket.send offset parameter correctly. r=dpreston --- dom/network/src/TCPSocketChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/network/src/TCPSocketChild.cpp b/dom/network/src/TCPSocketChild.cpp index 051768fdac86..812344a18a73 100644 --- a/dom/network/src/TCPSocketChild.cpp +++ b/dom/network/src/TCPSocketChild.cpp @@ -222,7 +222,7 @@ TCPSocketChild::SendSend(const JS::Value& aData, return NS_ERROR_OUT_OF_MEMORY; } FallibleTArray fallibleArr; - if (!fallibleArr.InsertElementsAt(0, data, nbytes)) { + if (!fallibleArr.InsertElementsAt(0, data + aByteOffset, nbytes)) { return NS_ERROR_OUT_OF_MEMORY; } InfallibleTArray arr;