We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a634e82 commit dd17692Copy full SHA for dd17692
lib/plist_find.c
@@ -329,12 +329,11 @@ xbps_find_virtualpkg_in_conf(struct xbps_handle *xhp,
329
continue;
330
}
331
} else {
332
- char *vpkgver = xbps_xasprintf("%s-999999_1", vpkg_conf);
+ char vpkgver[XBPS_NAME_SIZE + sizeof("-999999_1")];
333
+ snprintf(buf, sizeof(buf), "%s-999999_1", vpkg_conf);
334
if (!xbps_pkgpattern_match(vpkgver, pkg)) {
- free(vpkgver);
335
336
337
338
339
} else if (xbps_pkg_version(pkg)) {
340
// XXX: this is the old behaviour of only matching pkgname's,
0 commit comments