From 82848b33611241f0e257506880067492e0f71207 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Nov 2015 21:30:55 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/slibc-human/escape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slibc-human') diff --git a/src/slibc-human/escape.c b/src/slibc-human/escape.c index 9ba166a..832be8d 100644 --- a/src/slibc-human/escape.c +++ b/src/slibc-human/escape.c @@ -108,7 +108,7 @@ char* escape(const char* restrict str, char quote) case '\\': *w++ = '\\', *w++ = '\\'; break; case 0x7F: *w++ = '\\', *w++ = '1', *w++ = '7', *w++ = '7'; break; default: - if ((unsigned int)c == 0xC0) && ((unsigned int)(r[1]) == 0x80) + if (((unsigned int)c == 0xC0) && ((unsigned int)(r[1]) == 0x80)) *w++ = '\\', *w++ = '0', r++; else if (c == quote) *w++ = '\\', *w++ = quote; -- cgit v1.2.3-70-g09d2