mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-03 13:33:26 +00:00
Fix bug : wrong size vlaue when calling core_calloc
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user