X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_scan.c;fp=sbr%2Ffmt_scan.c;h=ca7f5e8c0e4397edc4115d17b13d1857013c50df;hp=d0b112bf0d02c513bfc048512e4db01f3f3821eb;hb=b600ac49b9dd3fe3938e6a7618d4b75f30e5b636;hpb=dcda74a843a1198dc23a3f6a17572c2f6ba5de61 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 }