Skip to content

Commit

Permalink
Fix STR#2808: corruption bug with Fl_Text_Buffer::insertfile().
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Mar 1, 2012
1 parent 17d221b commit 4e934c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fl_Text_Buffer.cxx
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4e934c0

Please sign in to comment.