3 ms·
It's not a bug. It's a public API and the buffer is an input from the caller. Nothing goes wrong if the buffer is smaller than it ought to be. The doc comment i
by Arnavion 6y ago
It's not a bug. It's a public API and the buffer is an input from the caller. Nothing goes wrong if the buffer is smaller than it ought to be. The doc comment is just warning the caller they might need a larger buffer than they think they do.
- mark-r 6y agoI read the comment as saying there's another call which gives you a recommended buffer size, but the value returned isn't always sufficient. That sounds very much like a bug to me. It could be a tweet just doesn't give enough context to know what the real problem is.
- Arnavion 6y ago>It could be a tweet just doesn't give enough context to know what the real problem is. The comment you originally replied to has a direct link to the (commit that added the) code in question.