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

Diff for /src/usr.bin/ssh/misc.c between version 1.4.2.1 and 1.4.2.2

version 1.4.2.1, 2001/03/12 15:44:12 version 1.4.2.2, 2001/03/21 18:52:52
Line 29 
Line 29 
   
 #include "misc.h"  #include "misc.h"
 #include "log.h"  #include "log.h"
   #include "xmalloc.h"
   
 char *  char *
 chop(char *s)  chop(char *s)
Line 94 
Line 95 
                 *s += strspn(*s + 1, WHITESPACE) + 1;                  *s += strspn(*s + 1, WHITESPACE) + 1;
   
         return (old);          return (old);
   }
   
   struct passwd *
   pwcopy(struct passwd *pw)
   {
           struct passwd *copy = xmalloc(sizeof(*copy));
   
           memset(copy, 0, sizeof(*copy));
           copy->pw_name = xstrdup(pw->pw_name);
           copy->pw_passwd = xstrdup(pw->pw_passwd);
           copy->pw_gecos = xstrdup(pw->pw_gecos);
           copy->pw_uid = pw->pw_uid;
           copy->pw_gid = pw->pw_gid;
           copy->pw_class = xstrdup(pw->pw_class);
           copy->pw_dir = xstrdup(pw->pw_dir);
           copy->pw_shell = xstrdup(pw->pw_shell);
           return copy;
 }  }

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.4.2.2