This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c/4177: in printf only first call to asctime(localtime(..)) is evaluated


Synopsis: in printf only first call to asctime(localtime(..)) is evaluated

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Fri Aug 31 05:07:34 2001
State-Changed-Why:
    asctime() returns a pointer to a statically allocated area.  You call it twice before pritnf has a chance to use the value written after the first call.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4177&database=gcc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]