X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fdist.c;h=869a906ba6137f0547c85f4b3aac03746f56e08c;hp=4e83a7b46e5303be2809cefd4e5684892f7acc18;hb=43ea5347b6b445d926082d6e3c1ddec376e8692d;hpb=6b80b3bb772e2cf9186cf964bf78109b677e1bef diff --git a/uip/dist.c b/uip/dist.c index 4e83a7b..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, distcomps); - 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);