From 4624152ac63ca3b4cbba0998d54fb0da84daef8c Mon Sep 17 00:00:00 2001 From: Mosder Date: Wed, 29 Jul 2026 23:38:30 +0200 Subject: refactor: explicitely specified c99 standard in CFLAGS --- Makefile | 4 ++-- analyzer/capture.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 72eab55..0b6f882 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -Wextra -iquote ./analyzer -O2 -flto -s +CFLAGS=-std=c99 -D_DEFAULT_SOURCE -Wall -Wextra -iquote ./analyzer -O2 -flto -s global: compile sudo mv branal /usr/local/bin @@ -7,7 +7,7 @@ global: compile local: compile mv branal ${HOME}/.local/bin -debug: CFLAGS=-iquote ./analyzer -Og -g +debug: CFLAGS=-std=c99 -D_DEFAULT_SOURCE -Wall -Wextra -iquote ./analyzer -Og -g debug: global compile: csv_table_gen main_files structures utils parser diff --git a/analyzer/capture.c b/analyzer/capture.c index 9c27850..a4a9495 100644 --- a/analyzer/capture.c +++ b/analyzer/capture.c @@ -21,7 +21,7 @@ void capturing_mode(char *path) { return; } - char capture_dir[PATH_MAX], new_path[PATH_MAX], date_time[128]; + char capture_dir[PATH_MAX], new_path[PATH_MAX + 256], date_time[128]; get_capture_dir(capture_dir); get_date_time_string(date_time); sprintf(new_path, "%s/capture-%s.pcap", capture_dir, date_time); -- cgit v1.2.3