From: scipio Date: Tue, 25 Sep 2007 00:01:58 +0000 (+0000) Subject: Fix length bug. X-Git-Tag: release_tinyos_2_1_0_0~712 X-Git-Url: https://oss.titaniummirror.com/gitweb?a=commitdiff_plain;h=ca815caf21d71b46c7ac0eb101c646a6b93f4dd0;p=tinyos-2.x.git Fix length bug. --- diff --git a/tos/lib/tossim/TossimActiveMessageC.nc b/tos/lib/tossim/TossimActiveMessageC.nc index eb9f49b2..191f08d6 100644 --- a/tos/lib/tossim/TossimActiveMessageC.nc +++ b/tos/lib/tossim/TossimActiveMessageC.nc @@ -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)) {