pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:405:       /*! @decl string asctime()    *! Return a string representing the time. Mostly useful for debug    *! purposes, the exact format is very locale (see    *! @[Gettext.setlocale]) and OS dependent.    */    PIKEFUN string asctime()    {    FIX_THIS();    { -  int maxsize = 26; -  char s[maxsize]; -  if( !strftime(s, maxsize, "%c", &THIS->t) ) + #define STRFTIME_MAXSIZE 26 +  char s[STRFTIME_MAXSIZE]; +  if( !strftime(s, STRFTIME_MAXSIZE, "%c", &THIS->t) )    push_undefined();    else    push_text(s);    }    }       PIKEFUN string _sprintf( int flag, mapping options )    {    int post_sum = 1;    switch( flag )