diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index 26e7c30e..1ce21e64 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -509,7 +509,7 @@ rcv_get_pkgver(rcv_t *rcv) vlen--; } comment = strchr(v, '#'); - if (comment && comment < p) { + if (comment && comment < p && (comment > v && comment[-1] == ' ')) { while (v[vlen-1] != '#') { vlen--; }