Changeset 223 for tags/onioncat-0.1.7/src/ocatlog.c
- Timestamp:
- 06/21/08 14:11:41 (4 years ago)
- Location:
- tags/onioncat-0.1.7
- Files:
-
- 2 copied
-
. (copied) (copied from trunk)
-
src/ocatlog.c (copied) (copied from trunk/src/ocatlog.c) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/onioncat-0.1.7/src/ocatlog.c
r221 r223 29 29 #include "ocat.h" 30 30 31 #define TIMESTRLEN 64 31 32 32 33 int debug_level_ = 4; … … 40 41 time_t t; 41 42 FILE *out = stderr; 42 char timestr[ 32] = "";43 char timestr[TIMESTRLEN] = ""; 43 44 va_list ap; 44 45 const OcatThread_t *th = get_thread(); … … 50 51 tm = localtime(&t); 51 52 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); 53 55 54 56 pthread_mutex_lock(&log_mutex_);
Note: See TracChangeset
for help on using the changeset viewer.
