aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/flncat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/flncat.c b/etc/flncat.c
index 6d57956..fb62a1e 100644
--- a/etc/flncat.c
+++ b/etc/flncat.c
@@ -103,6 +103,7 @@ main(int argc, char **argv)
if (c == EOF)
break;
else {
+ assert(lev < sizeof(buf));
buf[lev++] = c;
fwrite(buf, lev, 1, stdout);
}

Return to:

Send suggestions and report system problems to the System administrator.