refactor(optimize): use fixed size strings everywhere except for files

This commit is contained in:
2025-11-02 17:35:37 +01:00
parent b8bc021e69
commit 54ce876f6a
11 changed files with 52 additions and 49 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include "config.h"
#include "timer.h"
#include "types.h"
#include "video.h"
@@ -66,7 +67,7 @@ static void ioctl_error(VideoCapture *video_capture, const char *operation,
static VideoCapture open_device(char *name) {
VideoCapture video_capture;
video_capture.name = name;
strncpy(video_capture.name, name, STR_LEN);
video_capture.error = false;
video_capture.fd = -1;