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

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Fri Aug 31 05:07:00 GMT 2001


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



More information about the Gcc-prs mailing list