Use <= on length, not < on length + 1, to avoid GCC 4.6.0 warning about possible signed overflow.
Attach a file by drag & drop or click to upload