sscanf() returns EOF when it reaches the end of the string. Our code erroneously interprets this as if a number was read. The fix: we test for an explicit '1'. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Instead of silently accepting invalid patterns, we notify the user of errors. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Add test for mc_search__hex_translate_to_regex(). Signed-off-by: Andrew Borodin <aborodin@vmail.ru>