strncmp errors?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Typically, strncmp uses the length of the second
argument as the maximum comparison length.

Perhaps these strncmp uses should be modified?

arch/s390/kernel/vdso.c:	if (strncmp(s, "on", 3) == 0)
arch/s390/kernel/vdso.c:	else if (strncmp(s, "off", 4) == 0)
arch/s390/kernel/setup.c:	if (strncmp(str, "hwc", 4) == 0 || strncmp(str, "sclp", 5) == 0)
arch/s390/kernel/setup.c:	if (strncmp(str, "3215", 5) == 0)
arch/s390/kernel/setup.c:	if (strncmp(str, "3270", 5) == 0)


--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux