We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3883 - SDL_assert / SDL_PromptAssertion in TTY mode does not accept options ("abriA").
Summary: SDL_assert / SDL_PromptAssertion in TTY mode does not accept options ("abriA").
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.6
Hardware: x86_64 Linux
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-15 19:00 UTC by shoerbaffen
Modified: 2017-10-16 04:21 UTC (History)
0 users

See Also:


Attachments
SDL_strncmp instead of SDL_strcmp. (1.07 KB, patch)
2017-10-15 19:21 UTC, shoerbaffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description shoerbaffen 2017-10-15 19:00:05 UTC
fgets can read a newline and SDL_strcmp will never return zero.
Comment 1 shoerbaffen 2017-10-15 19:21:23 UTC
Created attachment 2986 [details]
SDL_strncmp instead of SDL_strcmp.
Comment 2 Sam Lantinga 2017-10-16 04:21:42 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/2eaf345a2a30