opensubscriber
   Find in this group all groups
 
Unknown more information…

n : nmh-workers@nongnu.org 7 June 2012 • 6:12AM -0400

Re: [Nmh-workers] scan -width behaves oddly in 1.5RC3
by Ken Hornstein

REPLY TO AUTHOR
 
REPLY TO GROUP




>I haven't had time to check, but I suspect -1 is what it's giving.
>I disagree with your reading of the standard though: -1 means failure,
>and in a failure case there is not any specification about what went
>into the buffer.

I agree with that ... but why is it failing?  If the only reason it's
failing is because the buffer isn't big enough, that is wrong; it's
supposed to return the number of bytes it wanted to write.  My reading
of the code we have now is that it's correctly rejecting the case where
snprintf() returns -1.

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nong...
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.