From 245e2e103dfc59fe5a53ac254a302bb7210332cf Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Mon, 5 Mar 2001 22:45:58 +0000 Subject: [PATCH] leading space fix --- docs/notework.txt | 2 ++ goldlib/gall/gtimutil.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)