Update nv50.c

"limit" is "length-1", otherwise line 143 should be corrected.