xbps_get_pkg_name(): remove wrong comment.

--HG--
extra : convert_revision : 5a51c7fc6559347195e86d051aae72caafaf489d
This commit is contained in:
Juan RP 2008-12-27 14:54:11 +01:00
parent bd6d7b5502
commit 11f0a2d4a6

View file

@ -56,12 +56,11 @@ xbps_get_pkg_name(const char *pkg)
assert(pkg != NULL);
/* Get the required version */
/* Get package name */
tmp = strrchr(pkg, '-');
assert(tmp != NULL);
len = strlen(pkg) - strlen(tmp) + 1;
/* Get package name */
pkgname = malloc(len);
memcpy(pkgname, pkg, len - 1);
pkgname[len - 1] = '\0';