Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ulimit -a: -r vs -N [was Re: pkgsrc patches for zsh]



On Thu, 26 Jun 2014 08:31:12 +0000
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Peter Stephenson wrote on Wed, Jun 25, 2014 at 12:11:55 +0100:
> > +#  define THREAD_FMT            "-T: threads                         "
> > +#else
> > +#  define THREAD_FMT            "-T: threads per process             "
> >  #endif
> ...
> > +	    printf(THREAD_FMT);
> 
> It would be more robust to use
> 
>     printf("%s", THREAD_FMT);
> 
> to in case THREAD_FMT ever contains a %.

Yes, it would; that's what I've committed.

pws



Messages sorted by: Reverse Date, Date, Thread, Author