Skip to content

Commit c4ff1db

Browse files
maass-hamburgkartben
authored andcommitted
mgmt: hawkbit: Fix cancelAction string handling
Fix off-by-one error in cancelAction string handling. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent c79c4ef commit c4ff1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/mgmt/hawkbit/hawkbit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ static int hawkbit_find_cancel_action_id(struct hawkbit_ctl_res *res,
638638
return -EINVAL;
639639
}
640640

641-
helper += sizeof("cancelAction/");
641+
helper += sizeof("cancelAction/") - 1;
642642

643643
*cancel_action_id = strtol(helper, NULL, 10);
644644
if (*cancel_action_id <= 0) {

0 commit comments

Comments
 (0)