]> git.ipfire.org Git - thirdparty/kmod.git/commit - libkmod/libkmod.c
Do not allocate path for known places an close resource asap
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 9 Dec 2011 17:33:37 +0000 (15:33 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 9 Dec 2011 17:45:55 +0000 (15:45 -0200)
commit4272d087800dea1754d15762ae022ead05cc35ed
tree0d2d67f3c974997c8edc0f7f4fdba5822a2a6423
parent33bb69b94329646748d6d362c39387ddaad6b7d6
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.
libkmod/libkmod.c