X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Ffile_ops.c;h=cc0fd8ee2926e745a2e2bd11e97518111d6c0dbf;hb=f154d097d062caf389d9fd5c096cf048d9f5724e;hp=3a4478749366a93a30ef75a36843ecc9fd4e7c5b;hpb=73a422963bf40757c43f72877fc2f622f136ccd4;p=citadel.git diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 3a4478749..cc0fd8ee2 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -65,9 +65,9 @@ int network_talking_to(char *nodename, int operation) { switch(operation) { case NTT_ADD: - if (nttlist == NULL) nttlist = strdoop(""); + if (nttlist == NULL) nttlist = strdup(""); if (nttlist == NULL) break; - nttlist = (char *)reallok(nttlist, + nttlist = (char *)realloc(nttlist, (strlen(nttlist) + strlen(nodename) + 3) ); strcat(nttlist, "|"); strcat(nttlist, nodename); @@ -76,7 +76,7 @@ int network_talking_to(char *nodename, int operation) { case NTT_REMOVE: if (nttlist == NULL) break; if (strlen(nttlist) == 0) break; - ptr = mallok(strlen(nttlist)); + ptr = malloc(strlen(nttlist)); if (ptr == NULL) break; strcpy(ptr, ""); for (i = 0; i < num_tokens(nttlist, '|'); ++i) { @@ -87,7 +87,7 @@ int network_talking_to(char *nodename, int operation) { strcat(ptr, "|"); } } - phree(nttlist); + free(nttlist); nttlist = ptr; break;