gladish: fix memory corruption

This commit is contained in:
Nedko Arnaudov 2010-12-27 03:56:59 +02:00
parent 65315d1252
commit 1958d74f7c
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ char * catdup_array(const char ** array, const char * delimiter)
len += strlen(array[i]);
len += delimiter_length;
}
len++;
buffer = malloc(len);
if (buffer == NULL)