projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcda74a
)
cpstripped: Add braces to make code more legible.
author
c_14
<git@c-14.de>
Tue, 16 May 2017 16:13:52 +0000
(18:13 +0200)
committer
Philipp Takacs
<philipp@bureaucracy.de>
Thu, 15 Jun 2017 19:57:46 +0000
(21:57 +0200)
sbr/fmt_scan.c
patch
|
blob
|
history
diff --git
a/sbr/fmt_scan.c
b/sbr/fmt_scan.c
index
d0b112b
..
ca7f5e8
100644
(file)
--- 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
}