mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Fix sstr() to return the exact wanted length instead of length + 1
This commit is contained in:
@ -686,7 +686,7 @@ function sstr(str: WideString; len: Integer) : WideString;
|
||||
begin
|
||||
if length(str) > len then
|
||||
begin
|
||||
str := copy(str, 0, len);
|
||||
str := copy(str, 0, len-1);
|
||||
str := str + '<27>';
|
||||
end;
|
||||
result := str;
|
||||
|
Reference in New Issue
Block a user