Skip to content

Commit 994b370

Browse files
maass-hamburggithub-actions[bot]
authored andcommitted
mgmt: hawkbit: Fix cancelAction string handling
Fix off-by-one error in cancelAction string handling. Signed-off-by: Fin Maaß <[email protected]> (cherry picked from commit c4ff1db)
1 parent c9674ad commit 994b370

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)