]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
small fix
authorstrabest <strabest>
Mon, 14 Sep 2009 21:07:39 +0000 (21:07 +0000)
committerstrabest <strabest>
Mon, 14 Sep 2009 21:07:39 +0000 (21:07 +0000)
tos/lib/net/tymo/mh/MHPacketM.nc

index 470fb6dc3a7a6cf29f1610016e02fb5a7cd10c7e..a202309691c657eb4c56273d7c441acf3e2579f1 100644 (file)
@@ -36,7 +36,7 @@ implementation {
   }
 
   command void * Packet.getPayload(message_t *msg, uint8_t len){
-    nx_uint8_t * p = call SubPacket.getPayload(msg, len);
+    nx_uint8_t * p = call SubPacket.getPayload(msg, len + sizeof(mhpacket_header_t);
     return (void *)(p + sizeof(mhpacket_header_t));
   }