Show
Ignore:
Timestamp:
05/20/99 14:14:48 (15 years ago)
Author:
ucaccsp
Message:

Some platforms don't have vsnprintf(), use vsprintf() as a replacement and
don't worry about buffer overflows.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/src/mbus.c

    r143 r156  
    5252#define MBUS_MAX_PD         10 
    5353#define MBUS_MAX_QLEN       50 /* Number of messages we can queue with mbus_qmsg() */ 
     54 
     55#ifdef NEED_VSNPRINTF 
     56int vsnprintf(char *s, int buf_size, const char *format, va_list ap) 
     57{ 
     58        /* Quick hack replacement for vsnprintf... note that this */ 
     59        /* doesm't check for buffer overflows, and so it open to  */ 
     60        /* many really nasty attacks!                             */ 
     61        return vsprintf(s,format,ap); 
     62} 
     63#endif 
    5464 
    5565struct mbus_key{