Skip to content

Commit

Permalink
BTextView: Fixed GetText().
Browse files Browse the repository at this point in the history
Patch by Pete Goodeve which fixes a problem in TextGapBuffer::GetString()
used by BTextView::GetText(). Thanks! Fixes #8447.
  • Loading branch information
jackburton79 committed Sep 19, 2014
1 parent d6bd340 commit 0eb9b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kits/interface/textview_support/TextGapBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ TextGapBuffer::GetString(int32 offset, int32 length, char* buffer)
int32 afterLen = length - beforeLen;

memcpy(buffer, fBuffer + offset, beforeLen);
memcpy(buffer + beforeLen, fBuffer + fGapIndex, afterLen);
memcpy(buffer + beforeLen, fBuffer + fGapIndex + fGapCount, afterLen);

}

Expand Down

0 comments on commit 0eb9b74

Please sign in to comment.