diff --git a/compiler/aasmtai.pas b/compiler/aasmtai.pas index a32936f97c..8b4ffa5f4f 100644 --- a/compiler/aasmtai.pas +++ b/compiler/aasmtai.pas @@ -2057,8 +2057,9 @@ implementation begin inherited ppuload(t,ppufile); len:=ppufile.getlongint; - getmem(str,len); + getmem(str,len+1); ppufile.getdata(str^,len); + str[len]:=#0 end;