Changeset 258:0389eeb717f8
- Timestamp:
- 07/06/08 08:12:31
(3 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
fix: corrupted string content in DnD RTF
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r238 |
r258 |
|
| 102 | 102 | int size = transferData.format * transferData.length / 8; |
|---|
| 103 | 103 | if (size is 0) return null; |
|---|
| 104 | | byte[] buffer = new byte[size]; |
|---|
| 105 | 104 | char [] chars = transferData.pValue[ 0 .. size]; |
|---|
| 106 | | return new ArrayWrapperString( chars[ 0 .. tango.text.Util.locate( chars, '\0' ) ] ); |
|---|
| | 105 | return new ArrayWrapperString( chars[ 0 .. tango.text.Util.locate( chars, '\0' ) ].dup ); |
|---|
| 107 | 106 | } |
|---|
| 108 | 107 | |
|---|