(platform_linux.c) Fix path for sysfs_ac_adapter

This commit is contained in:
twinaphex 2015-09-18 21:19:33 +02:00
parent 0d3c1714bc
commit 1ea6c2691a

View File

@ -1148,7 +1148,8 @@ static void check_proc_acpi_sysfs_ac_adapter(const char * node, bool *have_ac)
ssize_t buflen = 0;
const char *base = proc_acpi_sysfs_ac_adapter_path;
snprintf(path, sizeof(path), "%s/%s/%s", base, node, "online");
snprintf(path, sizeof(path), "%s/%s", base, "online");
printf("path: %s\n", path);
if (!retro_fmemcpy(path, state, sizeof(state), &buflen))
return;