Update fetch.c

Fixed off-by-one, thanks woggle @ irc.freenode.net/##programming