xbps-query/search: pass correct length to strlcat to truncate results.
This commit is contained in:
parent
d53b2c57cc
commit
83d00e4e8c
@ -84,7 +84,7 @@ print_results(struct xbps_handle *xhp, struct search_data *sd)
|
||||
assert(out);
|
||||
snprintf(out, sd->maxcols-3, "%s %s %s",
|
||||
inststr, tmp, desc);
|
||||
xbps_strlcat(out, "...\n", sizeof(*out));
|
||||
xbps_strlcat(out, "...\n", sd->maxcols+1);
|
||||
printf("%s", out);
|
||||
free(out);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user