X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffmt_scan.c;h=5dc7f22c91269d2a71c6b273e057822f23dd7e33;hb=ec751d9bbebd843215896b299712728eed0ea76c;hp=0af69aba2533b64127c4f529be202202e2e40b75;hpb=3c9700d8d045f3ff26ce5dd2a174454dafc14822;p=mmh diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 0af69ab..5dc7f22 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -3,14 +3,29 @@ * fmt_scan.c -- format string interpretation * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include #include -#include +#include #include +#ifdef TIME_WITH_SYS_TIME +# include +# include +#else +# ifdef TM_IN_SYS_TIME +# include +# else +# include +# endif +#endif + #define NFMTS MAXARGS extern char *formataddr (); /* hook for custom address formatting */ @@ -749,9 +764,6 @@ fmt_scan (struct format *format, char *scanl, int width, int *dat) len -= sp - lp + 1; while (cp < ep && lp <= sp) *cp++ = *lp++; - *cp++ = '\n'; - for (i=indent; cp < ep && i > 0; i--) - *cp++ = ' '; while (isspace(*lp)) lp++, len--; if (*lp) {