cairo-trace: Fix escape character encoding in string literals

This fixes a typo wherein both a return character and a tab character
were encoded when only a return character was specified for encoding.

Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org>
This commit is contained in:
George Matsumura 2020-08-31 22:15:21 -06:00 committed by Bryce Harrington
parent 590122daa8
commit 825154fef7

View file

@ -1824,6 +1824,7 @@ _encode_string_literal (char *out, int max,
*out++ = '\\';
*out++ = 'r';
max -= 2;
break;
case '\t':
*out++ = '\\';
*out++ = 't';