On 2008-11-21 00:15+0100 Werner Smekal wrote: > [...] gmtime() is called with a negative value, 0 is returned, and if that is > dereferenced than it crashes. I found two postings in the internet: > > http://markmail.org/message/55gg5qz6c26a4edd > http://www.nntp.perl.org/group/perl.perl5.porters/2008/07/msg138464.html > > which basically say, that gmtime in MinGW doesn't except negative values > and Visual C++ allows them only from the 2008 version on (which I happen > to have installed, that's why it worked for me with Visual C++). > > I know that this time stuff is not finished yet, but still we should do > something about that, e.g. checking the return value of gmtime not to be > zero. > > Any comments?
It sounds like your plan to check the return value of gmtime is exactly what we should be doing for now so please go ahead. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel