X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlsbr.c;h=5625fa18dd90926afa70e4838f48c0ab6a52ce15;hp=786178d315a41d831b029869412862d8b4b4875e;hb=41f62fc47ef6f2d223b7584b3bb912e65a630445;hpb=4d4f3e6367922ac4237d87ccfb070dbbcb6ff6be diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 786178d..5625fa1 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -68,9 +68,9 @@ static struct swit mhlswitches[] = { #define HELPSW 12 { "help", 0 }, #define FORW1SW 13 - { "forward", -7 }, /* interface from forw */ + { "forward", -7 }, #define FORW2SW 14 - { "forwall", -7 }, /* interface from forw */ + { "forwall", -7 }, #define DGSTSW 15 { "digest list", -6 }, #define VOLUMSW 16 @@ -224,8 +224,8 @@ static char *ignores[MAXARGS]; static jmp_buf env; static jmp_buf mhlenv; -static char delim3[] = /* from forw.c */ - "\n----------------------------------------------------------------------\n\n"; +static char delim3[] = +"\n----------------------------------------------------------------------\n\n"; static char delim4[] = "\n------------------------------\n\n"; static FILE *(*mhl_action) () = (FILE *(*) ()) 0; @@ -659,7 +659,9 @@ evalvar(struct mcomp *c1) if (ptos(name, &cp)) return 1; - nfs = new_fs(NULL, NULL, cp); + cp = concat("=", cp, NULL); + nfs = new_fs(cp, NULL); + free(cp); c1->c_nfs = getcpy(nfs); c1->c_flags |= FORMAT; return 0; @@ -668,7 +670,7 @@ evalvar(struct mcomp *c1) if (!mh_strcasecmp(name, "decode")) { char *nfs; - nfs = new_fs(NULL, NULL, "%(decode{text})"); + nfs = new_fs("=%(decode{text})", NULL); c1->c_nfs = getcpy(nfs); c1->c_flags |= FORMAT; return 0;