X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Freadconfig.c;h=2fe2d7d3f6082bc610e7241f468c18b0f1f83399;hb=f3575c51862ea3ef58aa9acae72505054d510143;hp=ec97e1e2f0e864f94358d867046be50db1fc57e8;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1;p=mmh diff --git a/sbr/readconfig.c b/sbr/readconfig.c index ec97e1e..2fe2d7d 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -55,9 +55,9 @@ readconfig(struct node **npp, FILE *ib, char *file, int ctx) np = mh_xcalloc(1, sizeof(*np)); *npp = np; *(npp = &np->n_next) = NULL; - np->n_name = getcpy(name); + np->n_name = mh_xstrdup(name); if (state == FLDPLUS) { - cp = getcpy(field); + cp = mh_xstrdup(field); while (state == FLDPLUS) { state = m_getfld(state, name, field, sizeof(field), ib);