Ignore:
Timestamp:
06/21/08 14:11:41 (4 years ago)
Author:
eagle
Message:

onioncat 0.1.7 released

Location:
tags/onioncat-0.1.7
Files:
2 copied

Legend:

Unmodified
Added
Removed
  • tags/onioncat-0.1.7/src/ocatlog.c

    r221 r223  
    2929#include "ocat.h" 
    3030 
     31#define TIMESTRLEN 64 
    3132 
    3233int debug_level_ = 4; 
     
    4041   time_t t; 
    4142   FILE *out = stderr; 
    42    char timestr[32] = ""; 
     43   char timestr[TIMESTRLEN] = ""; 
    4344   va_list ap; 
    4445   const OcatThread_t *th = get_thread(); 
     
    5051   tm = localtime(&t); 
    5152   if (tm) 
    52       strftime(timestr, 32, "%c", tm); 
     53      //strftime(timestr, 32, "%c", tm); 
     54      strftime(timestr, TIMESTRLEN, "%a, %d %b %Y %H:%M:%S %z", tm); 
    5355 
    5456   pthread_mutex_lock(&log_mutex_); 
Note: See TracChangeset for help on using the changeset viewer.