small malloc, realloc, string’s concatenation