discomfitor pushed a commit to branch enlightenment-0.18.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1b752ba5eb51845801adc78c201d6580204739a9

commit 1b752ba5eb51845801adc78c201d6580204739a9
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Mar 13 11:00:18 2014 -0400

    bugfix: use more descriptive + accurate buffer size in batget iterator
    
    CID 1039801
---
 src/modules/battery/batget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/battery/batget.c b/src/modules/battery/batget.c
index dc52606..212662f 100644
--- a/src/modules/battery/batget.c
+++ b/src/modules/battery/batget.c
@@ -1023,7 +1023,7 @@ linux_acpi_init(void)
         acpi_max_design = 0;
         EINA_ITERATOR_FOREACH(bats, info)
           {
-             char buf[4096];
+             char buf[PATH_MAX + 6];
              FILE *f;
 
              strcpy(buf, info->path);

-- 


Reply via email to