[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Proposed solution to Debian Bug#143485
From: |
Jon Steinhart |
Subject: |
Re: [Nmh-workers] Proposed solution to Debian Bug#143485 |
Date: |
Fri, 26 Aug 2005 09:12:14 -0700 |
> > > execlp (mhlproc, mhl, "-form", filter, "-noclear", NULL);
> > > - fprintf (stderr, "unable to exec ");
> > > - perror (mhlproc);
> > > + write(2, "unable to exec ", 15);
> >
> > Reminds me of Hollerith constants, i.e. having to manually count the
> > length of a string literal. Can't we just stick with the fprintf(),
> > perror(), etc., and add judicious use of fflush()?
It's a bit cumbersome, but I prefer this approach:
write(2, "unable to exec ", sizeof ("unable to exec ") - 1);