rem: lines_eol[2*i+1] = &eol;
add: lines_eol[2*i+1] = eol;
context: static int write_to_vm_fifo(char *fifo, str *lines, int cnt ){	int   fd_fifo,i;	str   *lines_eol[2*VM_FIFO_PARAMS];	str   eol={"\n",1};	for (i=0; i<cnt; i++ ) {		lines_eol[2*i] = lines[i];		lines_eol[2*i+1] = &eol;	}	/* open FIFO file stream */	if((fd_fifo = open(fifo,O_WRONLY | O_NONBLOCK)) == -1){		switch(errno){			case ENXIO:				LOG(L_ERR,"ERROR: %s: ans_machine deamon is not running !\n",								exports.name);			default:				LOG(L_ERR,"ERROR: %s: %s\n",exports.name,strerror(errno));		}		goto error;	}	/* write now (unbuffered straight-down write) */#if 0	DBG("vm: write_to_vm_fifo: <%.*s>\n",len,buf);	if (write(fd_fifo, buf,len)==-1) {		LOG(L_ERR, "ERROR: write_to_vm_fifo: write failed: %s\n",					strerror(errno));	}#elserepeat:	if (writev(fd_fifo, (struct iovec*)lines_eol, 2*cnt)<0) {		if (errno!=EINTR) {			LOG(L_ERR, "ERROR: write_to_vm_fifo: writev failed: %s\n",				strerror(errno));			close(fd_fifo);			goto error;		} else {			goto repeat;		}	}#endif	close(fd_fifo);	DBG("DEBUG: write_to_vm_fifo: write completed\n");#if 0	pkg_free(buf);#endif	return 1; /* OK */error:#if 0	pkg_free(buf);#endif	return -1;}