--- oup/current/Tools/BinEdit.pas 2007/02/25 17:20:22 113 +++ oup/current/Tools/BinEdit.pas 2007/05/02 15:16:00 174 @@ -467,8 +467,10 @@ begin str := ''; if hex.SelCount = 0 then begin - while (hex.Data[hex.SelStart + j] > 0) and ((hex.SelStart + j) < hex.DataSize) do + while (hex.SelStart + j) < hex.DataSize do begin + if hex.Data[hex.SelStart + j] = 0 then + Break; if hex.Data[hex.selstart + j] >= 32 then str := str + Char(hex.Data[hex.SelStart + j]) else