Avoid potential overflow in sscanf when reading in server info