mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +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