[BACK]Return to buffer.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/buffer.c between version 1.16.4.2 and 1.16.4.3

version 1.16.4.2, 2003/09/16 21:30:49 version 1.16.4.3, 2004/03/04 18:18:15
Line 39 
Line 39 
 {  {
         if (buffer->alloc > 0) {          if (buffer->alloc > 0) {
                 memset(buffer->buf, 0, buffer->alloc);                  memset(buffer->buf, 0, buffer->alloc);
                   buffer->alloc = 0;
                 xfree(buffer->buf);                  xfree(buffer->buf);
         }          }
 }  }
Line 104 
Line 105 
                 goto restart;                  goto restart;
         }          }
         /* Increase the size of the buffer and retry. */          /* Increase the size of the buffer and retry. */
   
         newlen = buffer->alloc + len + 32768;          newlen = buffer->alloc + len + 32768;
         if (newlen > 0xa00000)          if (newlen > 0xa00000)
                 fatal("buffer_append_space: alloc %u not supported",                  fatal("buffer_append_space: alloc %u not supported",
Line 168 
Line 169 
 void  void
 buffer_dump(Buffer *buffer)  buffer_dump(Buffer *buffer)
 {  {
         int i;          u_int i;
         u_char *ucp = buffer->buf;          u_char *ucp = buffer->buf;
   
         for (i = buffer->offset; i < buffer->end; i++) {          for (i = buffer->offset; i < buffer->end; i++) {

Legend:
Removed from v.1.16.4.2  
changed lines
  Added in v.1.16.4.3