summaryrefslogtreecommitdiffstats
path: root/HACKING-toc.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-11-01 06:58:18 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-11-01 06:58:18 -0700
commitb8e093dbaae99d2dc12157fcce1bb12ba26b8d3e (patch)
treef3b3d678a1e0b67b3688f9b97ebffc7c83d9b512 /HACKING-toc.txr
parent0aa0c547cd586ad2871bbb9487dcde0ac5bf273b (diff)
downloadtxr-b8e093dbaae99d2dc12157fcce1bb12ba26b8d3e.tar.gz
txr-b8e093dbaae99d2dc12157fcce1bb12ba26b8d3e.tar.bz2
txr-b8e093dbaae99d2dc12157fcce1bb12ba26b8d3e.zip
linenoise: guard against setting cols to zero.
* linenoise/linenoise.c (get_columns): Avoid the situation that cols is zero or negative. The cols value is involved in a modulo calculation (position % cols), which requires cols not to be zero. The situation hasn't been observed; this is just defensive coding.
Diffstat (limited to 'HACKING-toc.txr')
0 files changed, 0 insertions, 0 deletions