[Shadowirc-commits] CVS: shadowirc/src/lib TCPStuff.c,1.70,1.71
Status: Alpha
Brought to you by:
dshadow
|
From: John B. <ds...@us...> - 2009-09-04 02:18:54
|
Update of /cvsroot/shadowirc/shadowirc/src/lib In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27552/src/lib Modified Files: TCPStuff.c Log Message: PATH_MAX instead of MAXPATHLEN Index: TCPStuff.c =================================================================== RCS file: /cvsroot/shadowirc/shadowirc/src/lib/TCPStuff.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- TCPStuff.c 1 May 2005 05:30:11 -0000 1.70 +++ TCPStuff.c 4 Sep 2009 02:18:32 -0000 1.71 @@ -389,7 +389,7 @@ static int ident_bind(void) { int fd = -1, sockfd[2], status; - char c, path[MAXPATHLEN]; + char c, path[PATH_MAX]; CFBundleRef bundle; CFURLRef resources, toolURL; pid_t pid; @@ -408,7 +408,7 @@ if(!toolURL) return FALSE; - CFURLGetFileSystemRepresentation(toolURL, TRUE, (UInt8 *) &path, MAXPATHLEN); + CFURLGetFileSystemRepresentation(toolURL, TRUE, (UInt8 *) &path, PATH_MAX); CFRelease(toolURL); if(socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd) != 0) |