IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2020, 1:54:47 PM (6 years ago)
Author:
tdeboer
Message:

revert to working Ohana build

File:
1 edited

Legend:

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

    r41321 r41340  
    129129}
    130130 
    131 /* write the bytes to the IOBuffer */
    132 int WriteToIOBuffer (IOBuffer *buffer, char *input, int Ninput) {
    133 
    134   // extend the buffer if needed
    135   if (buffer[0].Nbuffer + Ninput + 1 >= buffer[0].Nalloc) {
    136     buffer[0].Nalloc = buffer[0].Nbuffer + Ninput + 64;
    137     REALLOCATE (buffer[0].buffer, char, buffer[0].Nalloc);
    138   }
    139 
    140   memcpy (&buffer[0].buffer[buffer[0].Nbuffer], input, Ninput);
    141   buffer[0].Nbuffer += Ninput;
    142   buffer[0].buffer[buffer[0].Nbuffer] = 0;
    143 
    144   return (TRUE);
    145 }
    146  
Note: See TracChangeset for help on using the changeset viewer.