Fix truncation warnings inside text mode module