X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=fde41074157040779d34782526c0c8da197c9104;hb=246ca516a0f7b870316116bc184347b0fb2bc00b;hp=2e7c257c7b7979c6c4af6eee4f8f4287777cace3;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index 2e7c257..fde4107 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -214,7 +214,7 @@ main(int argc, char **argv) #ifdef LOCALE setlocale(LC_ALL, ""); #endif - invo_name = r1bindex(*argv, '/'); + invo_name = mhbasename(*argv); /* foil search of user profile/context */ if (context_foil(NULL) == -1) @@ -792,7 +792,7 @@ parse(int fd) case FLD: case FLDEOF: case FLDPLUS: - lp = add(field, NULL); + lp = getcpy(field); while (state == FLDPLUS) { state = m_getfld(state, name, field, sizeof(field), in); @@ -1586,7 +1586,7 @@ suppress_duplicates(int fd, char *file) continue; } - cp = add(buf, NULL); + cp = getcpy(buf); while (state == FLDPLUS) { state = m_getfld(state, name, buf, sizeof(buf), in); cp = add(buf, cp);