mirror of
https://github.com/fltk/fltk.git
synced 2026-06-07 00:55:23 +08:00
Fix STR#2808: corruption bug with Fl_Text_Buffer::insertfile().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1559,7 +1559,7 @@ static int general_input_filter(char *buffer, int buflen,
|
||||
{
|
||||
char *p, *q, multibyte[5];
|
||||
int lq, r, offset;
|
||||
p = endline = line;
|
||||
p = line;
|
||||
q = buffer;
|
||||
while (q < buffer + buflen) {
|
||||
if (p >= endline) {
|
||||
@@ -1597,7 +1597,7 @@ static int utf8_input_filter(char *buffer, int buflen, char *line, int sline, ch
|
||||
char *p, *q, multibyte[5];
|
||||
int l, lp, lq, r;
|
||||
unsigned u;
|
||||
p = endline = line;
|
||||
p = line;
|
||||
q = buffer;
|
||||
while (q < buffer + buflen) {
|
||||
if (p >= endline) {
|
||||
|
||||
Reference in New Issue
Block a user