From 33be6c49fdf471b723ef05eaa2d68d2850bb6457 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 12 Nov 2024 17:16:58 +0900 Subject: [PATCH] Fix erronous buffer declaration --- src/static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static.c b/src/static.c index 435409a..c6d76b9 100644 --- a/src/static.c +++ b/src/static.c @@ -458,7 +458,7 @@ int c_simple_http_static_copy_over_dir(const char *from, return 1; } - char *buf[1024]; + char buf[1024]; size_t fread_ret; unsigned long fwrite_ret; while (!feof(from_file_fd)