summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorLakshmi Shanmugam2013-05-22 10:22:07 (EDT)
committer Grant Gayed2013-05-22 10:23:52 (EDT)
commita1e0ef96d65e6ef2f4c5b16924d15cef55932534 (patch)
tree620db63b028a852f619261ac400b2c197c48668b
parentf6a9faea76ab3f42d0301599acb7315834790e40 (diff)
downloadeclipse.platform.swt-a1e0ef96d65e6ef2f4c5b16924d15cef55932534.zip
eclipse.platform.swt-a1e0ef96d65e6ef2f4c5b16924d15cef55932534.tar.gz
eclipse.platform.swt-a1e0ef96d65e6ef2f4c5b16924d15cef55932534.tar.bz2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index b17d087..1d98c38 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -1381,6 +1381,7 @@ public char[] getTextChars () {
if (segments != null) buffer = deprocessText (buffer, 0, -1, false);
char [] chars = new char [length];
System.arraycopy (buffer.chars, 0, chars, 0, length);
+ for (int i = 0; i < buffer.chars.length; i++) buffer.chars [i] = '\0';
return chars;
}