mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
commands: osd_show_property_text: fix \xNN escapes
When handling escapes of the form '\xNN', m_properties_expand_string() incorrectly copied the last N to the output. Fix.
This commit is contained in:
parent
fddb59a6c3
commit
a5c6428882
@ -145,7 +145,7 @@ char *m_properties_expand_string(const m_option_t *prop_list, char *str,
|
||||
char num[3] = { str[2], str[3], 0 };
|
||||
char *end = num;
|
||||
num_val = strtol(num, &end, 16);
|
||||
sl = end - num;
|
||||
sl = end - num + 1;
|
||||
l = 1;
|
||||
p = &num_val;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user