Update of /cvsroot/pure-data/externals/mrpeach/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11553
Modified Files: tcpserver.c Log Message: changed MAX_PATH to FILENAME_MAX
Index: tcpserver.c =================================================================== RCS file: /cvsroot/pure-data/externals/mrpeach/net/tcpserver.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tcpserver.c 7 Nov 2006 21:17:51 -0000 1.2 --- tcpserver.c 28 Nov 2006 16:42:30 -0000 1.3 *************** *** 1,5 **** ! /* x_net_tcpserver.c Martin Peach 20060511 working version 20060512 */ /* 20060515 works on linux too... */ ! /* x_net_tcpserver.c is based on netserver: */ /* -------------------------- netserver ------------------------------------- */ /* */ --- 1,5 ---- ! /* tcpserver.c Martin Peach 20060511 working version 20060512 */ /* 20060515 works on linux too... */ ! /* tcpserver.c is based on netserver: */ /* -------------------------- netserver ------------------------------------- */ /* */ *************** *** 256,260 **** int late; int sockfd = x->x_fd[client]; ! char fpath[MAX_PATH]; FILE *fptr;
--- 256,260 ---- int late; int sockfd = x->x_fd[client]; ! char fpath[FILENAME_MAX]; FILE *fptr;
*************** *** 291,295 **** {
! atom_string(&argv[i], fpath, MAX_PATH); #ifdef DEBUG post ("%s: fname: %s", objName, fpath); --- 291,295 ---- {
! atom_string(&argv[i], fpath, FILENAME_MAX); #ifdef DEBUG post ("%s: fname: %s", objName, fpath); *************** *** 646,648 **** }
! /* end of x_net_tcpserver.c */ --- 646,648 ---- }
! /* end of tcpserver.c */