|
From: <sv...@va...> - 2014-09-27 13:24:43
|
Author: florian
Date: Sat Sep 27 14:24:36 2014
New Revision: 14575
Log:
Replace one more VG_(arena_realloc).
Modified:
branches/BUF_REMOVAL/coregrind/m_libcfile.c
Modified: branches/BUF_REMOVAL/coregrind/m_libcfile.c
==============================================================================
--- branches/BUF_REMOVAL/coregrind/m_libcfile.c (original)
+++ branches/BUF_REMOVAL/coregrind/m_libcfile.c Sat Sep 27 14:24:36 2014
@@ -1212,6 +1212,7 @@
# endif
}
+
const HChar *VG_(basename)(const HChar *path)
{
static HChar *buf = NULL;
@@ -1244,7 +1245,7 @@
SizeT need = end-p+1 + 1;
if (need > buf_len) {
buf_len = (buf_len == 0) ? 500 : need;
- buf = VG_(arena_realloc)(VG_AR_CORE, "basename", buf, buf_len);
+ buf = VG_(realloc)("basename", buf, buf_len);
}
VG_(strncpy)(buf, p, end-p+1);
buf[end-p+1] = '\0';
|