You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewrite the line splitting logic to avoid stack buffers
The new logic reads the source buffer exactly once and
moves the accumulated buffer in the dedicated buffer.
This implementation avoids VLAs and instead uses
a dedicated buffer allocated with xCalloc. The buffer is
guaranteed to be at least 40 characters wide, meaning on narrow
displays horizontal scrolling will be necessary. Doing so ensures
a half-decent chance for arguments to fit fully in one line.
0 commit comments