iiod-client.c: rework iiod_client_open_unlocked to remove strcpy
iiod-client.c: rework iiod_client_open_unlocked to remove strcpy

https://cwe.mitre.org/data/definitions/120.html defines
strcpy as potentially dangerous, and is included in Microsoft's
banned.h

This re-works the function to remove it, and use iio_strlcpy instead.

tested remotely and locally.

Signed-off-by: Robin Getz <c66e5a86ef9317cf35cecb2ed063996b2100ed4b@analog.com>

analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio