6010a24de6
The funcs xbps_pkg_name() and xbps_pkgpattern_name() were using malloc(3) to return the result, until now. They now have been changed to not allocate the result via malloc, the caller is responsible to provide a buffer at least of XBPS_NAME_SIZE (64). If for whatever reason the pkgname can't be guessed, returns false. This should avoid lots of small allocs around libxbps. New functions have the following prototype: bool xbps_pkg_name(char *dst, size_t len, const char *pkg) bool xbps_pkgpattern_name(char *dst, size_t len, const char *pkg) as suggested by @duncaen. |
||
---|---|---|
.. | ||
check_pkg_alternatives.c | ||
check_pkg_files.c | ||
check_pkg_rundeps.c | ||
check_pkg_symlinks.c | ||
check_pkg_unneeded.c | ||
check.c | ||
defs.h | ||
main.c | ||
Makefile | ||
xbps-pkgdb.1 |