summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authormillert <>2004-01-20 06:06:48 +0000
committermillert <>2004-01-20 06:06:48 +0000
commit3a9bdfad7b4583f085b2e8157df7796839aa8ae2 (patch)
treefae5a287c7e20c5aba1d422e6b948b26519a07a7 /src/lib/libc/stdlib
parent1d7384540d665cdb91806c51a5b917ad6e152388 (diff)
downloadopenbsd-3a9bdfad7b4583f085b2e8157df7796839aa8ae2.tar.gz
openbsd-3a9bdfad7b4583f085b2e8157df7796839aa8ae2.tar.bz2
openbsd-3a9bdfad7b4583f085b2e8157df7796839aa8ae2.zip
Fix the example code. The loop invariant 'i' was not bound by MAXTOKENS
which could result in writing a NUL byte outside of tokens[]. A fix, from Patrick Latifi, is to move the increment into the "i < MAXTOKENS - 1" block.
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions