On Mon, 04 Nov 2024 10:31:38 +0100,
Baojun Xu wrote:
> + // Speaker id was needed for ASUS projects.
> + if (!strncmp(sub, TAS2781_ASUS_ID, sizeof(TAS2781_ASUS_ID))) {
Is this really correct? The sizeof(TAS2781_ASUS_ID) is 5, including
the terminating NUL. So this becomes equivalent with strcmp(), and
it doesn't check the sub-string.
thanks,
Takashi
[Index of Archives]
[Pulseaudio]
[Linux Audio Users]
[ALSA Devel]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]