and fix strlen in checkip.c

Change-Id: I1eef27fc6663b3b508c837580e7d6e67a92d3105