Fix bug : wrong size vlaue when calling core_calloc

This commit is contained in:
James Park 2018-04-10 14:35:18 -07:00
parent 935e4b56ef
commit a1e06c919f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ extern "C" {
d_assert((__dST),, "Null param") \
S1AP_CLEAR_DATA(__dST); \
(__dST)->size = (__sRC)->size; \
(__dST)->buf = core_calloc(1, sizeof((__dST)->size)); \
(__dST)->buf = core_calloc((__dST)->size, sizeof(c_uint8_t)); \
memcpy((__dST)->buf, (__sRC)->buf, (__dST)->size); \
} while(0)