dtinfo subdirectory dtinfogen

This commit is contained in:
Ulrich Wilkens
2013-08-28 20:07:21 +02:00
committed by Jon Trulson
parent aef2830df2
commit eb698f32cf
43 changed files with 1074 additions and 895 deletions

View File

@@ -57,8 +57,9 @@ void StringList::grow(size_t total)
const char * StringList::append(const char *str)
{
char *p = new char[strlen(str)+1];
strcpy(p, str);
int len = strlen(str);
char *p = new char[len + 1];
*((char *) memcpy(p, str, len) + len) = '\0';
grow(used);