Ymodem: fix a bug found by Clang