This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll


On Fri, 26 Aug 2005, Brian Dessent wrote:

> Eric Blake wrote:
>
> > Because POSIX states that buf is indeterminate on error, and
> > because Corrina's patch caused a regression (ie. 1.5.18 was
> > setting buf[0] to 0 on error).  QofI states that we might as
> > well make the indeterminate buffer useful, in case a user
> > forgets to check the return value being NULL.
>
> Ah yes.  But, if we want to follow the mantra of "we're just mean" then
> obviously the buffer should be filled with a long string of obscenities
> and insults on error condition.  The dirtier the better -- maybe
> "/bin/fortune --nasty" could be called.  And without a terminating \0,
> of course.

strcpy(buf,"HIPPOhippoHIPPOhippoHIPPOhippoHIPPOhippoHIPPOhippo");
buf[strlen(buf)]='H';

	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]