IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13551


Ignore:
Timestamp:
May 30, 2007, 12:19:53 PM (19 years ago)
Author:
eugene
Message:

fixed bug with vsnprintf double call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/src/IOBufferOps.c

    r10650 r13551  
    108108  int Nbyte;
    109109  char tmp;
     110  va_list argp2;
    110111
    111   Nbyte = vsnprintf (&tmp, 0, format, argp);
     112  va_copy (argp2, argp);
     113
     114  Nbyte = vsnprintf (&tmp, 0, format, argp2);
    112115
    113116  if (buffer[0].Nbuffer + Nbyte + 1>= buffer[0].Nalloc) {
Note: See TracChangeset for help on using the changeset viewer.