refactor: sprintf -> snprint, strncpy -> strlcpy

This commit is contained in:
2025-11-08 18:46:28 +01:00
parent 9c60d5dc4f
commit 92f010ca70
8 changed files with 60 additions and 58 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ static void ioctl_error(VideoCapture *video_capture, const char *operation,
static VideoCapture open_device(char *name) {
VideoCapture video_capture;
strncpy(video_capture.name, name, STR_LEN);
strlcpy(video_capture.name, name, STR_LEN);
video_capture.error = false;
video_capture.fd = -1;
video_capture.exp_fd = -1;