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

Diff for /src/usr.bin/ssh/Attic/uuencode.c between version 1.12 and 1.12.2.1

version 1.12, 2001/03/01 02:27:18 version 1.12.2.1, 2002/03/09 00:20:45
Line 1 
Line 1 
 /*      $OpenBSD$       */  
   
 /*  /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.   * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *   *
Line 25 
Line 23 
  */   */
   
 #include "includes.h"  #include "includes.h"
   RCSID("$OpenBSD$");
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "uuencode.h"  #include "uuencode.h"
   
 #include <resolv.h>  #include <resolv.h>
   
 RCSID("$OpenBSD$");  
   
 int  int
 uuencode(u_char *src, u_int srclength,  uuencode(u_char *src, u_int srclength,
     char *target, size_t targsize)      char *target, size_t targsize)
Line 52 
Line 50 
                 ;                  ;
         for (; *p != '\0' && *p != ' ' && *p != '\t'; p++)          for (; *p != '\0' && *p != ' ' && *p != '\t'; p++)
                 ;                  ;
         /* and remote trailing whitespace because __b64_pton needs this */          /* and remove trailing whitespace because __b64_pton needs this */
         *p = '\0';          *p = '\0';
         len = __b64_pton(encoded, target, targsize);          len = __b64_pton(encoded, target, targsize);
         xfree(encoded);          xfree(encoded);
Line 60 
Line 58 
 }  }
   
 void  void
 dump_base64(FILE *fp, u_char *data, int len)  dump_base64(FILE *fp, u_char *data, u_int len)
 {  {
         u_char *buf = xmalloc(2*len);          u_char *buf = xmalloc(2*len);
         int i, n;          int i, n;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.12.2.1