aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-16 21:30:55 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-16 21:30:55 +0100
commit82848b33611241f0e257506880067492e0f71207 (patch)
tree200e2028915579e368fa59b7c0540cdd9c179dff
parentincrease readability of cleanname (diff)
downloadslibc-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.c2
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;