hush shell: Avoid string write overflow when entering max cmd length