mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-11 18:32:53 +03:00

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>