Changeset 258:0389eeb717f8

Show
Ignore:
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
  • dwt/dnd/RTFTransfer.d

    r238 r258  
    102102    int size = transferData.format * transferData.length / 8; 
    103103    if (size is 0) return null; 
    104     byte[] buffer = new byte[size]; 
    105104    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 ); 
    107106} 
    108107