Ignore:
Timestamp:
Mar 10, 2006 12:57:12 PM (18 years ago)
Author:
bennylp
Message:

Fixed compilation and run warnings/errors with MSVC 2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/log.c

    r141 r315  
    2121#include <pj/string.h> 
    2222#include <pj/os.h> 
    23 #include <pj/compat/vsprintf.h> 
    2423#include <pj/compat/stdarg.h> 
    2524 
     
    8988        static const char *wdays[] = { "Sun", "Mon", "Tue", "Wed", 
    9089                                       "Thu", "Fri", "Sat"}; 
    91         strcpy(pre, wdays[ptime.wday]); 
     90        pj_ansi_strcpy(pre, wdays[ptime.wday]); 
    9291        pre += 3; 
    9392    } 
     
    138137 
    139138    /* Print the whole message to the string log_buffer. */ 
    140     print_len = vsnprintf(pre, sizeof(log_buffer)-len, format, marker); 
     139    print_len = pj_ansi_vsnprintf(pre, sizeof(log_buffer)-len, format,  
     140                                  marker); 
    141141    if (print_len < 0) { 
    142         print_len = pj_snprintf(pre, sizeof(log_buffer)-len,  
    143                                 "<logging error: msg too long>"); 
     142        print_len = pj_ansi_snprintf(pre, sizeof(log_buffer)-len,  
     143                                     "<logging error: msg too long>"); 
    144144    } 
    145145    len = len + print_len; 
Note: See TracChangeset for help on using the changeset viewer.