Quote:
Originally Posted by kjhambrick
And this is still incorrect:
|
Well, it may be correct if one wanted to right pad each line with spaces to fill the entire buffer and then terminate it, but it's probably not what the OP was intending.
Anyway, I've given up trying to second guess his intentions at this point. I was sure he was trying to replace the \n earlier because it was the only thing that made sense to me and I kind of got tunnel vision on that, but it seems that he was
intentionally if mistakenly removing the string terminator, which obviously isn't going to end well.
Oh well, at least we needn't worry about bugs in ncurses.