diff --git a/src/dosubst.c b/src/dosubst.c index 7277d708..180d6888 100644 --- a/src/dosubst.c +++ b/src/dosubst.c @@ -11,7 +11,7 @@ /***************************************************************/ #include "config.h" -static char const RCSID[] = "$Id: dosubst.c,v 1.7 1998-03-01 20:43:54 dfs Exp $"; +static char const RCSID[] = "$Id: dosubst.c,v 1.8 1998-03-04 18:13:26 dfs Exp $"; #define L_IN_DOSUBST #include @@ -75,6 +75,7 @@ int jul, mode; int has_quote = 0; char *ss, *os; char s[256]; + int origLen = DBufLen(dbuf); FromJulian(jul, &y, &m, &d); @@ -625,7 +626,7 @@ int jul, mode; /* There ARE quotes. If in CAL_MODE, delete everything before first quote and after second quote. If in NORMAL_MODE, delete the %" sequences. */ - ss = DBufValue(dbuf); + ss = DBufValue(dbuf) + origLen; os = ss; if (mode == NORMAL_MODE) { while (*ss) { @@ -634,7 +635,6 @@ int jul, mode; } *os = 0; } else { - /* Skip past the quote marker */ while (*ss && (*ss != QUOTE_MARKER)) ss++; diff --git a/src/queue.c b/src/queue.c index c9255116..4d805b99 100644 --- a/src/queue.c +++ b/src/queue.c @@ -10,7 +10,7 @@ /***************************************************************/ #include "config.h" -static char const RCSID[] = "$Id: queue.c,v 1.5 1998-03-02 19:38:40 dfs Exp $"; +static char const RCSID[] = "$Id: queue.c,v 1.6 1998-03-04 18:13:27 dfs Exp $"; /* We only want object code generated if we have queued reminders */ #ifdef HAVE_QUEUED @@ -475,7 +475,7 @@ unsigned int sleeptime /* If date has rolled around, restart */ if (RealToday != SystemDate(&y, &m, &d)) { - printf("NOTE reread\n"); + printf("NOTE newdate\nNOTE reread\n"); fflush(stdout); reread(); }