diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-08 14:27:18 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-12 00:05:25 +0400 |
commit | 9673dfcdd3866345c1641876b64a11c5f729f72e (patch) | |
tree | dee8b08ca57239b2ca2916136f83fb384f399be9 /.gitignore | |
parent | 5f78642b1899c43249f3eec34bc4b60aa1b64afd (diff) | |
download | accel-ppp-9673dfcdd3866345c1641876b64a11c5f729f72e.tar.gz accel-ppp-9673dfcdd3866345c1641876b64a11c5f729f72e.zip |
cli: Improve word splitting functions
* skip_word(): ensure the for() loop won't pass over a '\0' character
* split(): ensure the for() loop won't try to fill buf[MAX_CMD_ITEMS]
* split(): skip leading spaces.
* split(): fix exit value if no item is found (return 0 instead of 1)
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions