From b600ac49b9dd3fe3938e6a7618d4b75f30e5b636 Mon Sep 17 00:00:00 2001 From: c_14 Date: Tue, 16 May 2017 18:13:52 +0200 Subject: [PATCH] cpstripped: Add braces to make code more legible. --- sbr/fmt_scan.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index d0b112b..ca7f5e8 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -230,15 +230,16 @@ cpstripped(char **start, char *end, char *str) } } #else - while((c = (unsigned char) *s++) && *start < end) - if (!iscntrl(c) && !isspace(c)) + while((c = (unsigned char) *s++) && *start < end) { + if (!iscntrl(c) && !isspace(c)) { *(*start)++ = c; - else { + } else { while ((c = (unsigned char) *s) && (iscntrl(c) || isspace(c))) s++; *(*start)++ = ' '; } + } #endif } -- 1.7.10.4