pkg_metadir: this must use HASH_ADD_STR instead!

This commit is contained in:
Juan RP 2012-11-18 17:08:45 +01:00
parent edc9853904
commit 37b7cccc83

View File

@ -109,12 +109,7 @@ xbps_metadir_get_pkgd(struct xbps_handle *xhp, const char *name)
assert(pm);
strlcpy(pm->name, name, sizeof(pm->name));
pm->d = d;
HASH_ADD_KEYPTR(hh,
pkgmetas,
__UNCONST(name),
strlen(__UNCONST(name)),
pm);
HASH_ADD_STR(pkgmetas, name, pm);
return d;
}