refactor: strncpy -> strlcpy

This commit is contained in:
2025-11-10 14:13:27 +01:00
parent f5bf71f535
commit 352f97c2db
7 changed files with 22 additions and 17 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include <GLFW/glfw3.h>
#include <alsa/asoundlib.h>
#include <bsd/string.h>
#include "types.h"
@@ -7,7 +8,7 @@
#include "log.h"
void midi_open(MidiDevice *device, char *name) {
strncpy(device->name, name, STR_LEN);
strlcpy(device->name, name, STR_LEN);
device->input = NULL;
device->output = NULL;