X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsortm.c;h=a1fcf5d81e0d6583ab435ef609a5f69465a51bbe;hb=0ecdc197e9a9a4d2bb6dce395dea152fbc728b6b;hp=9e8da9f6227d3fbed516da4fac74d0e484d6622b;hpb=13ae9ba066e6b8c114daa6714895a56816465f49;p=mmh diff --git a/uip/sortm.c b/uip/sortm.c index 9e8da9f..a1fcf5d 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -103,10 +103,10 @@ main (int argc, char **argv) snprintf(buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case DATESW: if (datesw) @@ -492,7 +492,7 @@ rename_chain (struct msgs *mp, struct smsg **mlist, int msg, int endmsg) { int nxt, old, new; char *newname, oldname[BUFSIZ]; - char newbuf[MAXPATHLEN + 1]; + char newbuf[PATH_MAX + 1]; for (;;) { nxt = mlist[msg] - smsgs; /* mlist[msg] is a ptr into smsgs */ @@ -530,7 +530,7 @@ rename_msgs (struct msgs *mp, struct smsg **mlist) int i, j, old, new; seqset_t tmpset; char f1[BUFSIZ], tmpfil[BUFSIZ]; - char newbuf[MAXPATHLEN + 1]; + char newbuf[PATH_MAX + 1]; struct smsg *sp; strncpy (tmpfil, m_name (mp->hghmsg + 1), sizeof(tmpfil));