diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 05:06:22 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 05:06:22 +0200 |
| commit | 1bd35c0348a74a343c29e2273e7ba46576eacfa6 (patch) | |
| tree | 4746742031904725f124e235e6f8bbe5881424f7 | |
| parent | 803b6c9c9eb15db58a9f7e9cea93baa88c743277 (diff) | |
Zero buf
| -rw-r--r-- | FICS/copyfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FICS/copyfile.c b/FICS/copyfile.c index 9f62a53..0f9e4ce 100644 --- a/FICS/copyfile.c +++ b/FICS/copyfile.c @@ -73,6 +73,9 @@ fics_copyfile(const char *p1, const char *p2, const bool post_checks) str[0] = &buf[0][0]; str[1] = &buf[1][0]; + memset(str[0], 0, sizeof(buf[0])); + memset(str[1], 0, sizeof(buf[1])); + if (SHA1File(p1, str[0]) != NULL && SHA1File(p2, str[1]) != NULL) { #if PRINT_CHECKSUMS |
