kleiner fehler eingeschlichen.

This commit is contained in:
Enno Rehling 2005-04-24 08:17:07 +00:00
parent e39b020d58
commit 42c8902729
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ set_string (char **s, const char *neu)
*s = NULL;
} else if (*s == NULL) {
*s = malloc(strlen(neu)+1);
strcpy(*s, neu);
} else {
*s = realloc(*s, strlen(neu) + 1);
strcpy(*s, neu);