git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ca734
)
ACPI: replace strlen("string") with sizeof("string") -1
author
Len Brown
<len.brown@intel.com>
Fri, 27 Jul 2012 01:32:01 +0000
(21:32 -0400)
committer
Len Brown
<len.brown@intel.com>
Fri, 27 Jul 2012 01:35:28 +0000
(21:35 -0400)
...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>
No differences found