Changeset ec300ad9a870240b1196ce97db607ff23deede43

Show
Ignore:
Timestamp:
06/19/08 19:21:44 (2 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1213896104 +0300
git-parent:

[260c3894961c8a0ccb62cdaf11f07fa54155a514]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1213896104 +0300
Message:

fix variable name - closes #1629

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/http/mvar.c

    r7e413aa rec300ad  
    580580#endif 
    581581        { 
    582             char psz_ctime[26]; 
     582            char psz_buf[26]; 
    583583            char psz_tmp[strlen( psz_dir ) + 1 + strlen( psz_name ) + 1]; 
    584584 
     
    601601            } 
    602602 
    603             sprintf( psz_ctime, "%"PRId64, (int64_t)stat_info.st_size ); 
    604             mvar_AppendNewVar( f, "size", psz_ctime ); 
     603            snprintf( psz_buf, sizeof( psz_buf ), "%"PRId64, 
     604                      (int64_t)stat_info.st_size ); 
     605            mvar_AppendNewVar( f, "size", psz_buf ); 
    605606 
    606607            /* FIXME memory leak FIXME */ 
    607608#   ifdef HAVE_CTIME_R 
    608             ctime_r( &stat_info.st_mtime, psz_ctime ); 
    609             mvar_AppendNewVar( f, "date", psz_ctime ); 
     609            ctime_r( &stat_info.st_mtime, psz_buf ); 
     610            mvar_AppendNewVar( f, "date", psz_buf ); 
    610611#   else 
    611612            mvar_AppendNewVar( f, "date", ctime( &stat_info.st_mtime ) );