From a5c642888259112dba9a5b83419ed4a014e97303 Mon Sep 17 00:00:00 2001 From: harklu Date: Mon, 1 Aug 2011 16:19:01 +0200 Subject: 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. --- m_property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm_property.c') 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 -- cgit v1.2.3