Skip to content
Snippets Groups Projects
Commit 8bf62e6b authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix bug

parent 7b545bf6
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ let of_cstruct buf =
let inter_val = Cstruct.get_uint8 buf (offset + 2) in
let cmd_val = Cstruct.get_uint8 buf (offset + 3) in
let addition_info_val = Cstruct.BE.get_uint32 buf (offset + 4) in
read_entries buf (count - 1) ({ id_val; inter_val; cmd_val; addition_info_val } :: lst) (offset + 8)
read_entries buf (count - 1) (lst @ [ { id_val; inter_val; cmd_val; addition_info_val } ]) (offset + 8)
in
{ option_type; length; count; entries = read_entries buf count [] 4 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment