]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fix length bug.
authorscipio <scipio>
Tue, 25 Sep 2007 00:01:58 +0000 (00:01 +0000)
committerscipio <scipio>
Tue, 25 Sep 2007 00:01:58 +0000 (00:01 +0000)
tos/lib/tossim/TossimActiveMessageC.nc

index eb9f49b234f9421e528161eab3b6e844583e4632..191f08d67ac808085c12dacd219a13f2629d012a 100644 (file)
@@ -103,6 +103,7 @@ implementation {
     void* payload;
 
     memcpy(bufferPointer, msg, sizeof(message_t));
+    len = call Packet.getPayloadLength(bufferPtr);
     payload = call Packet.getPayload(bufferPointer, call Packet.maxPayloadLength());
 
     if (call AMPacket.isForMe(msg)) {