X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vsyssh%2Fvsyssh.c;fp=vsyssh%2Fvsyssh.c;h=58625f5ef38574e1eab220763587ee70476171c2;hb=16c8bb31dd971b7fab00dbb17a75bb08cee463c6;hp=b77d7f2a7c54ef7349e4bba32f6ddcc8fa201389;hpb=47e86c6701f0bfe11a8a8784cd06db3283a57775;p=vsys.git diff --git a/vsyssh/vsyssh.c b/vsyssh/vsyssh.c index b77d7f2..58625f5 100644 --- a/vsyssh/vsyssh.c +++ b/vsyssh/vsyssh.c @@ -66,6 +66,8 @@ int main(int argc, char **argv, char **envp) char lineread[2048]; int ret; ret=read(0,lineread,2048); + lineread[ret]='\0'; + printf ("writing %s\n",lineread); write(vfd1,lineread,ret); FD_CLR(0,&set); } if (FD_ISSET(vfd0,&set)) {