Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #15 - no match displays user input. #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WebsterXC
Copy link

This was a project for my CSE410 class at University At Buffalo. We were tasked with finding an open-source project, selecting an open bug-fix and trying to narrow down / fix the bug.

I was able to fix issue #15 by comparing the current string buffer to the menu selection returned by action_confirm. If the user presses enter, the N characters in the string buffer are compared to the first N characters of the menu selection using strncmp(). If they don't match, then we can conclude the menu selection is an invalid match.

Someone will want to double check it for type and syntax consistency. Hopefully this helps, I plan on poking around more on my own fork!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant