Home
last modified time | relevance | path

Searched hist:"869639 f9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/acpi/
H A Dsysfs.c869639f9 Thu Jul 26 20:32:01 CDT 2012 Len Brown <len.brown@intel.com> ACPI: replace strlen("string") with sizeof("string") -1

...both give the number of chars in the string
without the '\0', as strncmp() wants,
but sizeof() is compile-time.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Pavel Vasilyev <pavel@pavlinux.ru>
Signed-off-by: Len Brown <len.brown@intel.com>
869639f9 Thu Jul 26 20:32:01 CDT 2012 Len Brown <len.brown@intel.com> ACPI: replace strlen("string") with sizeof("string") -1

...both give the number of chars in the string
without the '\0', as strncmp() wants,
but sizeof() is compile-time.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Pavel Vasilyev <pavel@pavlinux.ru>
Signed-off-by: Len Brown <len.brown@intel.com>