Exit ee gracefully, if character conversion fails.
This commit is contained in:
parent
f8c6ad47be
commit
5e54bb3b75
3
ee.c
3
ee.c
|
@ -1970,6 +1970,9 @@ int *append; /* TRUE if must append more text to end of current line */
|
||||||
wchar_t in_string[MAX_FILE];
|
wchar_t in_string[MAX_FILE];
|
||||||
length = mbstowcs(in_string, in_str, sizeof(in_string));
|
length = mbstowcs(in_string, in_str, sizeof(in_string));
|
||||||
|
|
||||||
|
if (length == -1)
|
||||||
|
exit(0);
|
||||||
|
|
||||||
str2 = in_string;
|
str2 = in_string;
|
||||||
num = 0;
|
num = 0;
|
||||||
first_time = TRUE;
|
first_time = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue