gavinhoward / bc

An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained.
https://git.gavinhoward.com/gavin/bc
Other
145 stars 29 forks source link

Fix incorrect processing of env:BC_LINE_LENGTH=0 #65

Closed dorjechang closed 1 year ago

dorjechang commented 1 year ago

Casting int -1 to size_t produces SIZE_T_MAX so BC_NUM_PRINT_WIDTH is used instead of 0