Repository navigation
Fixed
DecodereturnsErrInvalidHeaderfor a negative count in the main header, as ncurses does. Before, such a file panicked.Decodeno longer panics on anacs_charsvalue of odd length. The value now matchesinfocmp: an unpaired last byte stays at the end, and when a source character repeats, the last pair wins.Printfreads a%format as ncursestparmdoes. Before the verb, a format accepts only the flags, a width and a precision. A width or precision over 10000 drops the flags. Before, a 12-byte string such as%:%%999999XXreturned 1 MB.
Changed
%cignores its width, and%:+is the+operator, as in ncurses.
Thanks to Andrei Beshkov (@aibeshkov), who found these faults with fuzzing.
Full Changelog: v1.3.0...v1.3.1