sh: Make sure indexes are positive

The indexes are signed, make sure they are not negative
when we read array elements.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Roel Kluin 2009-11-02 16:14:42 +00:00 • committed by Paul Mundt
commit 9016332014
3 changed files with 3 additions and 3 deletions