oops ppurka - %i on wrong part of string. fix. this is what happens

when u cant test :)



SVN revision: 71424
This commit is contained in:
Carsten Haitzler 2012-05-25 12:17:16 +00:00
parent 0ed1c99f2c
commit 35dda3c894
1 changed files with 2 additions and 2 deletions

View File

@ -336,8 +336,8 @@ _e_acpi_lid_status_get(const char *device, const char *bus)
*/
for (i = 0; i < 10; i++)
{
snprintf(buff, sizeof(buff), "/proc/acpi/%s%i/%s/state",
device, i, bus);
snprintf(buff, sizeof(buff), "/proc/acpi/%s/%s%i/state",
device, bus, i);
if ((f = fopen(buff, "r"))) break;
f = NULL;
}