truncate output buf len if too large for ddl/dde