xbps/bin/xbps-install
Juan RP 6010a24de6 libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes.
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.
2020-02-08 19:49:57 +01:00
..
defs.h
fetch_cb.c fix compilation of fetch_cb on gcc 7 2017-08-22 18:44:32 -04:00
main.c xbps-install: improved -D,--download-only support. 2020-01-25 13:05:46 +01:00
Makefile bin/xbps-install: remove duplicate from Makefile 2019-03-22 19:14:08 +01:00
question.c xbps-install: make question() read the whole input line 2019-06-07 19:38:51 +02:00
state_cb.c libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
transaction.c libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
util.c libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
xbps-install.1 xbps-install: fix --reproducable. 2019-12-29 16:31:23 +01:00