Change name and fix memeory access off-by-one

Signed-off-by: Vlad-Marin UNGUREANU <vlad.ungureanu1808@stud.acs.upb.ro>
