summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--1/22.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/1/22.c b/1/22.c
index 39dbd6c..bfb13b5 100644
--- a/1/22.c
+++ b/1/22.c
@@ -38,11 +38,9 @@ void fold(char to[], char from[], int n) {
if (len == 0 && blank)
continue;
- if (len >= n) {
- if (!blank) {
- to[j++] = '\n';
- len = 0;
- }
+ if (len >= n && !blank) {
+ to[j++] = '\n';
+ len = 0;
}
to[j++] = c;