xbps-query/list: pass correct length to strlcat to truncate results.
This commit is contained in:
parent
53c6a5d1d7
commit
8839669710
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user