diff --git a/bin/xbps-query/list.c b/bin/xbps-query/list.c index f9847949..45e0f075 100644 --- a/bin/xbps-query/list.c +++ b/bin/xbps-query/list.c @@ -77,7 +77,7 @@ list_pkgs_in_dict(struct xbps_handle *xhp _unused, assert(out); snprintf(out, lpc->maxcols - 3, "%s %s", tmp, short_desc); - xbps_strlcat(out, "...\n", sizeof(*out)); + xbps_strlcat(out, "...\n", lpc->maxcols+1); printf("%s", out); free(out); } else {