vty: Support multi-char separators and end strings

In vty_cmd_string_from_valstr() include the real string lengths of
the sep and end arguments into the buffer size calculation.
2 files changed