Diff between 425ca24613730a869ca6002669af06ad10b75c9e and a0fc007256112d95342b7b52f9797be4310b5821
Changed Files
| File | Additions | Deletions | Status |
| mesh/net.c | +1 | -1 | modified |
Full Patch
diff --git a/mesh/net.c b/mesh/net.c
index f00ef7d..53010d5 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -1288,7 +1288,7 @@ static struct mesh_friend_msg *mesh_friend_msg_new(uint8_t seg_max)
sizeof(struct mesh_friend_seg_one);
size += (seg_max + 1) * sizeof(struct mesh_friend_seg_12);
- frnd_msg = (struct mesh_friend_msg *) l_new(uint8_t, size);
+ frnd_msg = l_malloc(size);
} else
frnd_msg = l_new(struct mesh_friend_msg, 1);