mirror of
https://github.com/Telecominfraproject/oopt-tai.git
synced 2026-01-27 10:22:03 +00:00
meta: fix bug of tai_deserialize_charlist
tai_char_list_t.list doesn't need to be null terminated Signed-off-by: Wataru Ishida <ishida@nel-america.com>
This commit is contained in:
committed by
Wataru Ishida
parent
56cc2a7c19
commit
d2467ededf
@@ -458,7 +458,7 @@ int tai_deserialize_charlist(
|
||||
_In_ const char *buffer,
|
||||
_Out_ tai_char_list_t *value)
|
||||
{
|
||||
int count = strlen(buffer) + 1;
|
||||
int count = strlen(buffer);
|
||||
if ( count > value->count ) {
|
||||
value->count = count;
|
||||
return TAI_STATUS_BUFFER_OVERFLOW;
|
||||
|
||||
Reference in New Issue
Block a user