commit | 4272d087800dea1754d15762ae022ead05cc35ed | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Fri Dec 09 15:33:37 2011 -0200 |
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Fri Dec 09 15:45:55 2011 -0200 |
tree | 0d2d67f3c974997c8edc0f7f4fdba5822a2a6423 | |
parent | 33bb69b94329646748d6d362c39387ddaad6b7d6 [diff] |
Do not allocate path for known places an close resource asap This place is not supposed to exceed PATH_MAX. So, use snprintf instead of asprintf. Close the index before iterating the values.