summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/depmod.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/depmod.c b/tools/depmod.c
index 4117dd1..364b7d4 100644
--- a/tools/depmod.c
+++ b/tools/depmod.c
@@ -2430,6 +2430,7 @@ static int flush_stream_to(FILE *in, int endchar, char *dst, size_t dst_sz)
if (i == dst_sz) {
WRN("Could not flush stream: %d. Partial content: %.*s\n",
ENOSPC, (int) dst_sz, dst);
+ i--;
}
return c == endchar ? i : 0;