Skip to content
Snippets Groups Projects
Commit 7f9608e2 authored by deuce's avatar deuce
Browse files

Don't allow characters over ASCII 255 (!)

parent 8c2b69bb
Branches
Tags
No related merge requests found
......@@ -1915,7 +1915,7 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
/* This broke swedish chars... */
if((ch>=' ' || (ch==1 && mode&K_MSG)) && i<max && (!ins || j<max) && isprint(ch))
#else
if((ch>=' ' || (ch==1 && mode&K_MSG)) && i<max && (!ins || j<max))
if((ch>=' ' || (ch==1 && mode&K_MSG)) && i<max && (!ins || j<max) && ch < 256)
#endif
{
if(mode&K_UPPER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment