Exit ee gracefully, if character conversion fails.

This commit is contained in:
Pasi Kallinen 2014-05-16 19:19:12 +03:00
parent f8c6ad47be
commit 5e54bb3b75
1 changed files with 3 additions and 0 deletions

3
ee.c
View File

@ -1970,6 +1970,9 @@ int *append; /* TRUE if must append more text to end of current line */
wchar_t in_string[MAX_FILE];
length = mbstowcs(in_string, in_str, sizeof(in_string));
if (length == -1)
exit(0);
str2 = in_string;
num = 0;
first_time = TRUE;