Fix trailing whitespace problem.
commitcc8fcdcfc033aa3dd1c56d4cd0c2dd9d3a32aa3b
authorMooffie <mooffie@gmail.com>
Sun, 25 Sep 2016 14:24:44 +0000 (25 17:24 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 4 Dec 2016 06:55:27 +0000 (4 09:55 +0300)
tree8cf1f711ad01c3eee4cdb553e0326e710f93469f
parentb25af93874de301d909924fd3ca7db5f4f2e7715
Fix trailing whitespace problem.

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>
lib/search/hex.c
tests/lib/search/hex_translate_to_regex.c