bugfix: use more descriptive + accurate buffer size in batget iterator

CID 1039801
This commit is contained in:
Mike Blumenkrantz 2014-03-13 11:00:18 -04:00
parent 16e7c57ba4
commit 07135d8b21
1 changed files with 1 additions and 1 deletions

View File

@ -1023,7 +1023,7 @@ linux_acpi_init(void)
acpi_max_design = 0; acpi_max_design = 0;
EINA_ITERATOR_FOREACH(bats, info) EINA_ITERATOR_FOREACH(bats, info)
{ {
char buf[4096]; char buf[PATH_MAX + 6];
FILE *f; FILE *f;
strcpy(buf, info->path); strcpy(buf, info->path);