logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: b5f0e9cdaaa9485a0af9e2e1ece1a93d066c1737
parent 6d733e87d9a69bca4f54ea3eac413c45cb51b935
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 15 Dec 2024 02:25:14 +0100

cmd/strings: use static for read_buf & write_buf

Diffstat:

Mcmd/strings.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/strings.c b/cmd/strings.c @@ -47,8 +47,8 @@ static int concat(int fd, const char *fdname) { ssize_t c; - char read_buf[4096]; - char write_buf[4096]; + static char read_buf[4096]; + static char write_buf[4096]; size_t write_pos = 0; size_t offset = 0;