commit | a1e0ef96d65e6ef2f4c5b16924d15cef55932534 | [log] [tgz] |
---|---|---|
author | Lakshmi Shanmugam <lshanmug@in.ibm.com> | Wed May 22 10:22:07 2013 -0400 |
committer | Grant Gayed <grant_gayed@ca.ibm.com> | Wed May 22 10:23:52 2013 -0400 |
tree | 620db63b028a852f619261ac400b2c197c48668b | |
parent | f6a9faea76ab3f42d0301599acb7315834790e40 [diff] |
Bug 408298 - Clear text in Text.getTextChars()
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 @@ 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; }