resolv.c fails for /etc/hosts lookups
resolv.c fails for /etc/hosts lookups

Patch attached:

Fix a bug in offset calculations when parsing /etc/hosts in resolv.c.

Formerly a miscalculation meant that having found the correct line, the code
was trashing its own result data.

Signed-off-by: Philip Nye <93b93443a6e0ca167365d9e47e354aae2cd34849@engarts.com>
Signed-off-by: Bernhard Reutner-Fischer <ce1ac9e9ad16abccd7821f371ad381197b4768ac@gmail.com>

hjl-tools/uClibc,brgl/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,ysat0/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,m-labs/uclibc-lm32,hjl-tools/uClibc,groundwater/uClibc,ysat0/uClibc,atgreen/uClibc-moxie,groundwater/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,hwoarang/uClibc,atgreen/uClibc-moxie,kraj/uclibc-ng,ffainelli/uClibc,kraj/uClibc,hwoarang/uClibc,groundwater/uClibc,ffainelli/uClibc,ddcc/klee-uclibc-0.9.33.2,czankel/xtensa-uclibc,ffainelli/uClibc,wbx-github/uclibc-ng,mephi42/uClibc,ddcc/klee-uclibc-0.9.33.2,m-labs/uclibc-lm32,foss-xtensa/uClibc,majek/uclibc-vx32,hjl-tools/uClibc,majek/uclibc-vx32,skristiansson/uClibc-or1k,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,ffainelli/uClibc,hwoarang/uClibc,hwoarang/uClibc,ffainelli/uClibc,waweber/uclibc-clang,wbx-github/uclibc-ng,m-labs/uclibc-lm32,hjl-tools/uClibc,wbx-github/uclibc-ng,waweber/uclibc-clang,waweber/uclibc-clang,majek/uclibc-vx32,foss-xtensa/uClibc,wbx-github/uclibc-ng,kraj/uclibc-ng,ndmsystems/uClibc,kraj/uclibc-ng,ysat0/uClibc,foss-xtensa/uClibc,hjl-tools/uClibc,kraj/uclibc-ng,atgreen/uClibc-moxie,ndmsystems/uClibc,majek/uclibc-vx32,skristiansson/uClibc-or1k,brgl/uclibc-ng,ndmsystems/uClibc,mephi42/uClibc,brgl/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,m-labs/uclibc-lm32,czankel/xtensa-uclibc,kraj/uClibc,skristiansson/uClibc-or1k,mephi42/uClibc,czankel/xtensa-uclibc,czankel/xtensa-uclibc,groundwater/uClibc,kraj/uClibc,mephi42/uClibc,waweber/uclibc-clang,brgl/uclibc-ng,groundwater/uClibc,ysat0/uClibc,atgreen/uClibc-moxie,ndmsystems/uClibc,ddcc/klee-uclibc-0.9.33.2,kraj/uClibc,skristiansson/uClibc-or1k