X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c6f2d14d9c38345075629af3487c2de491584ca1..6420adb9d93a17d3d16ae17bb67b012273fa0e8d:/uip/picksbr.c diff --git a/uip/picksbr.c b/uip/picksbr.c index 0085b7a0..0217aa15 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -422,7 +422,7 @@ nexp3 (void) free (n); return NULL; } - n->n_patbuf = getcpy (dp); + n->n_patbuf = mh_xstrdup(dp); return n; case PROTHR: @@ -916,11 +916,12 @@ tws_special (char *ap) if ((i -= tw->tw_wday) > 0) i -= 7; } - else + else { if (*ap != '-') return NULL; - else /* -ddd days ago */ - i = atoi (ap); /* we should error check this */ + /* -ddd days ago */ + i = atoi (ap); /* we should error check this */ + } clock += (long) ((60 * 60 * 24) * i); return dlocaltime (&clock);