]> git.draconx.ca Git - dxcommon.git/commit
Fix off-by-one error in gen-options.awk.
authorNick Bowler <nbowler@draconx.ca>
Sat, 6 Mar 2021 21:18:38 +0000 (16:18 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 6 Mar 2021 21:23:08 +0000 (16:23 -0500)
commit7cd29009c4beb86ed0e8d6b23b13e49a6041c592
tree7ef2120a6f09fffdb8795ab7b1ed5936ac09bad0
parentfbe1276f79d2c12aef279562eed9975e5b74db85
Fix off-by-one error in gen-options.awk.

When an option has no help text, the lopt_get_help function is returning
a description pointer which is one past the end of the help text array,
rather than a pointer to the final 0 byte as intended.  The results are
unpredictable.
scripts/gen-options.awk
tests/scripts.at