[svn:parrot] r44219 - branches/sys_mem_reduce/src/string
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat Feb 20 11:39:40 UTC 2010
Author: bacek
Date: Sat Feb 20 11:39:39 2010
New Revision: 44219
URL: https://trac.parrot.org/parrot/changeset/44219
Log:
Use internal allocate.
Modified:
branches/sys_mem_reduce/src/string/primitives.c
Modified: branches/sys_mem_reduce/src/string/primitives.c
==============================================================================
--- branches/sys_mem_reduce/src/string/primitives.c Sat Feb 20 11:22:59 2010 (r44218)
+++ branches/sys_mem_reduce/src/string/primitives.c Sat Feb 20 11:39:39 2010 (r44219)
@@ -357,7 +357,7 @@
/* 2 for the beginning and ending quote chars */
const size_t newlen = oldlen - 2;
- char * const copy = (char *)mem_sys_allocate(newlen);
+ char * const copy = (char *)mem_internal_allocate(newlen);
memcpy(copy, old + 1, newlen);
copy[newlen - 1] = 0;
More information about the parrot-commits
mailing list