* Fixed bug #12323. Bug is in getting default value of string parameters, unterminated memory copy

git-svn-id: trunk@11870 -
This commit is contained in:
michael 2008-10-09 09:55:21 +00:00
parent 213f8a41c7
commit b40d826439

View File

@ -2805,7 +2805,13 @@ implementation
case hpc.consttyp of
conststring,
constresourcestring :
hs:=strpas(pchar(hpc.value.valueptr));
begin
If hpc.value.len>0 then
begin
setLength(hs,hpc.value.len);
move(hpc.value.valueptr^,hs[1],hpc.value.len);
end;
end;
constreal :
str(pbestreal(hpc.value.valueptr)^,hs);
constpointer :