ACPI: replace strlen("string") with sizeof("string") -1
authorLen Brown <len.brown@intel.com>
Fri, 27 Jul 2012 01:32:01 +0000 (21:32 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 27 Jul 2012 01:35:28 +0000 (21:35 -0400)
commit869639f9e7ff5ca337b27469c298dd11c29cf0fa
tree335b176040be788e4710591e2e4848e456980055
parenta5ca7345c1e67cd12cf75a9ec034c7d34786ae79
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>
drivers/acpi/sysfs.c