aboutsummaryrefslogtreecommitdiffstats
path: root/key2root-rmkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'key2root-rmkey.c')
-rw-r--r--key2root-rmkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/key2root-rmkey.c b/key2root-rmkey.c
index 1165435..1b4a366 100644
--- a/key2root-rmkey.c
+++ b/key2root-rmkey.c
@@ -26,7 +26,7 @@ writeall(int fd, const char *data, size_t len)
size_t off = 0;
ssize_t r;
- for (;;) {
+ while (off < len) {
r = write(fd, &data[off], len - off);
if (r < 0)
return -1;