Bug 33732 (strlen)
Summary: | Small strlen | ||
---|---|---|---|
Product: | ACPI | Reporter: | Pavel Vasilyev (dixlor) |
Component: | Other | Assignee: | 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 |
thanks for the patch. Len, can you apply this patch please? BTW, Pavel, can you resend the patch to linux-acpi@vger.kernel.org mailing list? applied. 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 |
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?!