diff options
author | harklu <harklu@wat> | 2011-08-01 16:19:01 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-08-05 03:46:06 +0300 |
commit | a5c642888259112dba9a5b83419ed4a014e97303 (patch) | |
tree | 9d1558404a42ff9f95e070c7e58878ca5ab168d3 /m_property.c | |
parent | fddb59a6c3b06ecca9b4e755af4a5e6bccd20615 (diff) | |
download | mpv-a5c642888259112dba9a5b83419ed4a014e97303.tar.bz2 mpv-a5c642888259112dba9a5b83419ed4a014e97303.tar.xz |
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.
Diffstat (limited to 'm_property.c')
-rw-r--r-- | m_property.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m_property.c b/m_property.c index 188d225bad..bbc11defa0 100644 --- a/m_property.c +++ b/m_property.c @@ -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 |