mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
use content_size == new_size
This commit is contained in:
parent
8b9b124bd5
commit
2292d3ab97
@ -103,7 +103,7 @@ uint8_t* content_setContent(uint8_t* self, uint8_t* content, uint16_t size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* only copy */
|
/* only copy */
|
||||||
if (content_getSize(self) >= size) {
|
if (content_getSize(self) == size) {
|
||||||
__platform_memcpy(((__arg*)self)->content, content, size);
|
__platform_memcpy(((__arg*)self)->content, content, size);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user