You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
I think this matches what would happen in C, for better or worse. If you specify a format specifier, ncurses is going to try to pull something from printw's varargs. Nothing's there, so it segfaults.
The argument could easily be made that the Rust wrapper should handle this, and I wouldn't disagree. This library was written as a very thin wrapper though, so much of the danger of ncurses still exists.
On Wed, Jan 18, 2017 at 11:42:17PM -0800, clmn wrote:
`printw` segfaults if you try to print a string with `%s` in it. Not sure if this is expected or not:
printw("%s")
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#125
printw
segfaults if you try to print a string with%s
in it. Not sure if this is expected or not:addstr
does not.The text was updated successfully, but these errors were encountered: