diff --git a/docs/notework.txt b/docs/notework.txt index 995feac..7ea41ab 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -12,6 +12,8 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, March xx 2001 ______________________________________________________________________ +- Fixed leading space macroses in date/time format strings. + - Fixed double recoding of header during forward, quote-reply, and change. diff --git a/goldlib/gall/gtimutil.cpp b/goldlib/gall/gtimutil.cpp index 02db08a..99a21f3 100644 --- a/goldlib/gall/gtimutil.cpp +++ b/goldlib/gall/gtimutil.cpp @@ -166,7 +166,7 @@ static void strfmt(char *str, const char *fmt, ...) { ival = va_arg(vp, int); bool padding = true; while(ilen) { - ival %= pow[ilen] / pow[ilen-1]; + ival = (ival % pow[ilen]) / pow[ilen-1]; if(ival) padding = false; if(--ilen and padding)