| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Michael Widenius | Date: | September 2 1999 12:46am |
| Subject: | Unusual sprintf in item_timefunc.cc, wondering if it is an error. | ||
| View as plain text | |||
>>>>> "Robert" == Robert E Minsk <egbert@stripped> writes: >> Description: Robert> cc-1198 CC: WARNING File = item_timefunc.cc, Line = 829 Robert> The format string ends before this argument. Robert> sprintf(intbuff,"00",weekday); Yes this is a bug (that works). This is already fixed in 3.22.26 (I noticed this when trying out the new warnings flags in gcc 2.95) The correct code is: if (l_time.month == 1 && weekday >= 4 && l_time.day <= 7-weekday) { str->append("00"); } Regards, Monty
| Thread | ||
|---|---|---|
| • Unusual sprintf in item_timefunc.cc, wondering if it is an error. | (Robert E. Minsk) | 2 Sep |
| • Unusual sprintf in item_timefunc.cc, wondering if it is an error. | Michael Widenius | 2 Sep |
