summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/kwboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 941f4228f9..c0ac4ce19e 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -479,13 +479,14 @@ kwboot_term_pipe(int in, int out, char *quit, int *s)
return 0;
buf++;
nin--;
- } else
+ } else {
while (*s > 0) {
nout = write(out, quit, *s);
if (nout <= 0)
return -1;
(*s) -= nout;
}
+ }
}
}