mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:13:33 +03:00
tool_help: handle longer lines, exit on too long
Follow-up to 9a0cf56471
- increase the buffer to handle 160 characters manpage lines
- add another assert
- if the line buffer gets full, abort
Ideally, we add another step in the build process that makes the build
fail if this long lines are used.
Closes #14422
This commit is contained in:
parent
48818a41af
commit
53146dd262
2 changed files with 8 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ struct scan_ctx {
|
|||
size_t elen;
|
||||
size_t olen;
|
||||
char rbuf[40];
|
||||
char obuf[80];
|
||||
char obuf[160];
|
||||
unsigned char show; /* start as at 0.
|
||||
trigger match moves it to 1
|
||||
arg match moves it to 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue