nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Starting the final call for features for 1.7

2016-09-28 11:24:26
Hi Oliver,

Could we perhaps include a configure test and a fallback
implementation such as the one below

I realise it's probably just the first one that came to hand, but it
whiffs a bit, and

        if (buf) {
            buf[len] = '\0';
        }

I think that buf may only be len long on occasion when the NUL is added.
Oh, linebuf and linelen.  I renamed them for readability because all the
line* identifiers were silly when that's the central topic.

Given it's a common requirement, there's probably other getline-fallback
implementations, even given the licence requirements.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>