diff options
author | millert <> | 2004-01-20 06:06:48 +0000 |
---|---|---|
committer | millert <> | 2004-01-20 06:06:48 +0000 |
commit | 3a9bdfad7b4583f085b2e8157df7796839aa8ae2 (patch) | |
tree | fae5a287c7e20c5aba1d422e6b948b26519a07a7 /src/lib/libc/stdlib | |
parent | 1d7384540d665cdb91806c51a5b917ad6e152388 (diff) | |
download | openbsd-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