浏览代码

* Minor optimization from mantis 14974

git-svn-id: trunk@14016 -
marco 15 年之前
父节点
当前提交
030379bc57
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/inc/strings.pp

+ 1 - 1
rtl/inc/strings.pp

@@ -160,7 +160,7 @@ implementation
          len:=strlen(p)+1;
          getmem(strnew,len);
          if strnew<>nil then
-           strmove(strnew,p,len);
+           move(p^,strnew^,len);
       end;
 
     procedure strdispose(p : pchar);