gods

a simple blocklist for ssh
Log | Files | Refs | README | LICENSE

commit 91e719d56483a03d30d112276dc26e2d327b4a74
parent 36f49657d2c7e7caa83b968afb287aa3da81407f
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Fri,  1 Oct 2021 01:50:39 +0200

Zero initialize buffer prior to use

Diffstat:
Mmain.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -61,6 +61,7 @@ main(int argc, char **argv) for ( ; ; ) { line = buf; + memset(buf, 0, BUFSZ); while ((c = fgetc(fp)) != EOF) { if (c == '\n') { *line = '\0';