]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fix length bug (for real). Thanks to Chad for catching this.
authorscipio <scipio>
Tue, 25 Sep 2007 00:07:59 +0000 (00:07 +0000)
committerscipio <scipio>
Tue, 25 Sep 2007 00:07:59 +0000 (00:07 +0000)
tos/lib/tossim/TossimActiveMessageC.nc

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