cuda_iplookup: fixed buffer overflow