On Wed, Jun/11/2008 01:26:40PM, Gautam Iyer wrote:
> On Wed, Jun 11, 2008 at 11:02:50AM -0400, Ethan Mallove wrote:
> 
> > Index: src/init.c
> > ===================================================================
> > --- src/init.c      (revision 290)
> > +++ src/init.c      (working copy)
> > @@ -808,6 +808,7 @@
> >      SET_NULL(r->TermWin.sm_client_id);
> >  #endif
> >  
> > +#define NAME_MAX 1024
> >  #ifdef USE_FIFO
> >      {
> >     char fifo_name[NAME_MAX];
> 
> NAME_MAX is defined on my system, so the above patch will produce an
> error. I could put something like
> 
>     #ifndef NAME_MAX
>     # define NAME_MAX (1024)
>     #endif
> 
> into subversion. Alternately, see if FILENAME_MAX is defined on your
> system. Then s/NAME_MAX/FILENAME_MAX/g should be good enough,

Yes, I have FILENAME_MAX, so this works:

Index: src/init.c
===================================================================
--- src/init.c  (revision 290)
+++ src/init.c  (working copy)
@@ -810,7 +810,7 @@
 
 #ifdef USE_FIFO
     {
-       char fifo_name[NAME_MAX];
+       char fifo_name[FILENAME_MAX];
 
        sprintf( fifo_name, "/tmp/.mrxvt-%d", getpid() );
        r->fbuf_ptr = r->fifo_buf;

-Ethan

> 
> GI
> 
> 
> -- 
> Modern Computer Viruses:
> Airline virus -- You're in Dallas, but your data is in Singapore.



> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php

> _______________________________________________
> Materm-devel mailing list
> Materm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/materm-devel
> mrxvt home page: http://materm.sourceforge.net


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Materm-devel mailing list
Materm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/materm-devel
mrxvt home page: http://materm.sourceforge.net

Reply via email to