Commit 461bff5
bin/xbps-query: fix off-by-one error adding ellipsis
Last line `sd->linebuf[sd->maxcols]` is writing beyond the bounds of
the array. Also, adding a null terminator is not neccesary because
`snprintf` already does that.1 parent 63494b7 commit 461bff5
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments