changeset 5587 | 167d9a91ef02 |
parent 5584 | 1111b4d36e35 |
child 5609 | dc6a58930ba4 |
--- a/src/string.cpp Wed Jan 10 18:44:52 2007 +0000 +++ b/src/string.cpp Wed Jan 10 18:56:51 2007 +0000 @@ -6,6 +6,7 @@ #include "string.h" #include "macros.h" #include "table/control_codes.h" +#include "helpers.hpp" #include <stdarg.h> #include <ctype.h> // required for tolower() @@ -63,7 +64,7 @@ va_start(va, str); len = vsnprintf(buf, lengthof(buf), str, va); va_end(va); - p = malloc(len + 1); + MallocT(&p, len + 1); if (p != NULL) memcpy(p, buf, len + 1); return p; }