]> diplodocus.org Git - nmh/blobdiff - sbr/client.c
Replace `if (p) free(p)' with `mh_xfree(p)'.
[nmh] / sbr / client.c
index b75f0e2..9978896 100644 (file)
@@ -37,11 +37,11 @@ client (char *args, char *service, char *response, int len_response, int debug)
 
     ap = arguments;
     if (args != NULL && *args != 0) {
-       ap = client_copyip (client_brkstring (getcpy(args), " ", "\n"),
+       ap = client_copyip (client_brkstring (mh_xstrdup(args), " ", "\n"),
                ap, MAXARGS);
     } else {
        if (servers != NULL && *servers != 0)
-           ap = client_copyip (client_brkstring (getcpy(servers), " ", "\n"),
+           ap = client_copyip (client_brkstring (mh_xstrdup(servers), " ", "\n"),
                ap, MAXARGS);
     }
     if (ap == arguments) {