aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2006-11-28 16:44:18 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2006-11-28 16:44:18 +0000
commit16435b2e602e96d6e9183b58693e24604e1e4d1b (patch)
tree21903022c96c85cd86cc506c949ebc11534fe221
parenta71ed8bb9b14921f1b6ea7969f793cdcff23d015 (diff)
changed MAX_PATH to FILENAME_MAX.
svn path=/trunk/externals/mrpeach/; revision=6492
-rwxr-xr-xnet/tcpclient.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/tcpclient.c b/net/tcpclient.c
index 9c19433..06debfa 100755
--- a/net/tcpclient.c
+++ b/net/tcpclient.c
@@ -1,6 +1,6 @@
-/* x_net_tcp_client.c Martin Peach 20060508, working version 20060512 */
+/* tcpclient.c Martin Peach 20060508, working version 20060512 */
/* linux version 20060515 */
-/* x_net_tcp_client.c is based on netclient: */
+/* tcpclient.c is based on netclient: */
/* -------------------------- netclient ------------------------------------- */
/* */
/* Extended 'netsend', connects to 'netserver'. */
@@ -229,7 +229,7 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv)
double timebefore;
double timeafter;
int late;
- char fpath[MAX_PATH];
+ char fpath[FILENAME_MAX];
FILE *fptr;
#ifdef DEBUG
@@ -266,7 +266,7 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv)
else if (argv[i].a_type == A_SYMBOL)
{
- atom_string(&argv[i], fpath, MAX_PATH);
+ atom_string(&argv[i], fpath, FILENAME_MAX);
#ifdef DEBUG
post ("%s_send fname: %s", objName, fpath);
#endif
@@ -470,4 +470,4 @@ void tcpclient_setup(void)
class_addmethod(tcpclient_class, (t_method)tcpclient_dump, gensym("dump"), A_FLOAT, 0);
}
-/* end of x_net_tcp.c */
+/* end of tcpclient.c */