return NULL;
}
- s_send_space_struct[action].ptr = (void *)lv_mem_alloc(size);
+ s_send_space_struct[action].ptr = (void *)lv_mem_alloc(size + 1);
if(NULL == s_send_space_struct[action].ptr)
{
PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__, action);
s_send_space_struct[action].size = 0;
return NULL;
}
+ _lv_memset_00(s_send_space_struct[action].ptr, (size + 1));
s_send_space_struct[action].size = size;
PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: ptr=0x%x\n", __FUNCTION__, __LINE__, s_send_space_struct[action].ptr);