MIXERIOCLOADBUF ioctl: remove unnecessary string length restriction

mixer.cpp ensures the string is null-terminated (buffer length is 2048).
This commit is contained in:
Beat Küng
2019-10-21 09:42:08 +02:00
parent a8f6622831
commit 529da7b33e
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1052,7 +1052,7 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg)
case MIXERIOCLOADBUF: {
const char *buf = (const char *)arg;
unsigned buflen = strnlen(buf, 1024);
unsigned buflen = strlen(buf);
if (_mixers == nullptr) {
_mixers = new MixerGroup(control_callback, (uintptr_t)&_controls);