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
@@ -9,7 +9,7 @@
MidiDevice midi_open(char *name) {
MidiDevice device;
strncpy(device.name, name, STR_LEN);
strlcpy(device.name, name, STR_LEN);
device.input = NULL;
device.output = NULL;