Bug 33732 (strlen)

Summary: Small strlen
Product: ACPI Reporter: Pavel Vasilyev (dixlor)
Component: OtherAssignee: acpi_other
Status: CLOSED CODE_FIX    
Severity: normal CC: florian, lenb, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.39-rc4 Subsystem:
Regression: No Bisected commit-id:
Attachments: Strlen fix

Description Pavel Vasilyev 2011-04-19 20:27:36 UTC
Created attachment 54732 [details]
Strlen fix

The word "enable" contains six characters, (strlen ("enable") -1), equal to five.
The word "disable" has seven characters, (strlen ("disable")-1), equal to six.

Perhaps the author confused with sizeof?!
Comment 1 Zhang Rui 2012-01-18 05:05:45 UTC
thanks for the patch.
Len, can you apply this patch please?
Comment 2 Zhang Rui 2012-01-18 05:06:21 UTC
BTW, Pavel,

can you resend the patch to linux-acpi@vger.kernel.org mailing list?
Comment 3 Len Brown 2012-06-05 04:02:24 UTC
applied.
Comment 4 Florian Mickler 2012-07-01 09:49:00 UTC
A patch referencing this bug report has been merged in Linux v3.5-rc5:

commit 9f132652d94c96476b0b0a8caf0c10e96ab10fa8
Author: Pavel Vasilyev <pavel@pavlinux.ru>
Date:   Tue Jun 5 00:02:05 2012 -0400

    ACPI sysfs.c strlen fix