diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-16 21:30:55 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-16 21:30:55 +0100 |
commit | 82848b33611241f0e257506880067492e0f71207 (patch) | |
tree | 200e2028915579e368fa59b7c0540cdd9c179dff /src/slibc-human | |
parent | increase readability of cleanname (diff) | |
download | slibc-82848b33611241f0e257506880067492e0f71207.tar.gz slibc-82848b33611241f0e257506880067492e0f71207.tar.bz2 slibc-82848b33611241f0e257506880067492e0f71207.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/slibc-human/escape.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |