Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3d11822 authored by Jeremy Compostella's avatar Jeremy Compostella Committed by Badhri Jagan Sridharan
Browse files

dm: fix dm_substitute_devices()

When candidate is the last parameter, candidate_end points to the '\0'
character and not the DM_FIELD_SEP character.  In such a situation, we
should not move the candidate_end pointer one character backward.

(Cherry-picked from https://android-review.googlesource.com/#/c/221680/

)
Signed-off-by: default avatarJeremy Compostella <jeremy.compostella@intel.com>
Change-Id: Ifc042e07da99fcfdfd46811d4208b39b427a6d99
parent 8ad66caf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment