Praying actually, that 3.2 fixes those freaky problems. And I do mean freaky. Check this out.
char date_str[21];
struct tm now_tm;
...
// Fill the now_tm structure with valid data.
...
strftime(date_str, 20, "%Y%m%d%H%M%S", &now_tm);
...
If I cout << date_str after the strftime everything is okay.
If I don't ( and I don't want to since date_str strcat'd onto a message string ) I get a Segmentation Fault.
This is why I'm am spending tonight rebuilding a copy of our development environment on my laptop with Mandrake 9.0 which comes with gcc 3.2 to test the bloody compilers. |