X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fdist.c;h=869a906ba6137f0547c85f4b3aac03746f56e08c;hb=33b33a0ac8a3f8f05c9bb0195c100306c00cce35;hp=39d65253f256a35560b74dfd55bb03665107b1f5;hpb=84c6039eb7226c0ba0a8f708205e33d10950d2ae;p=mmh diff --git a/uip/dist.c b/uip/dist.c index 39d6525..869a906 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -45,7 +45,7 @@ main(int argc, char **argv) char *form = NULL, *msg = NULL, buf[BUFSIZ], drft[BUFSIZ]; char **argp, **arguments; struct msgs *mp = NULL; - char *nfs; + char *fmtstr; #ifdef LOCALE setlocale(LC_ALL, ""); @@ -139,8 +139,8 @@ main(int argc, char **argv) if ((out = creat(drft, m_gmprot())) == NOTOK) adios(drft, "unable to create"); - nfs = new_fs(form, NULL, distcomps, NULL); - if (write(out, nfs, strlen(nfs)) != strlen(nfs)) { + fmtstr = new_fs(form, distcomps); + if (write(out, fmtstr, strlen(fmtstr)) != strlen(fmtstr)) { adios(drft, "error writing"); } close(out);