On 2020-07-20 10:43, Steve Dickson wrote:
Thanks for point this out but I think I'm going to go with this: - char buf[PATH_MAX+4+2+256]; + /* dirname + cctype + d_name + NULL */ + char buf[PATH_MAX+5+256+1]; which explains the needed space and as well removes the warning...
That's fine. I didn't spend much time wondering why it was written that way, just assumed there was a reason.
Doug