=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/mytcpio.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- OpenXM/src/kan96xx/plugin/mytcpio.c 1999/10/08 02:12:05 1.1 +++ OpenXM/src/kan96xx/plugin/mytcpio.c 1999/10/30 02:22:16 1.2 @@ -1,3 +1,4 @@ +/* $OpenXM$ */ #include #include #include @@ -251,8 +252,8 @@ socketConnectWithPass(char *servername,int port,char * int m; fd = socketConnect(servername,port); if (fd >= 0) { - m = write(fd,pass,strlen(pass)); - if (m != strlen(pass)) { + m = write(fd,pass,strlen(pass)+1); + if (m != strlen(pass)+1) { fprintf(TcpioError,"Fail to send password to fd=%d.\n",fd); return(-1); }