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

Diff for /src/usr.bin/ssh/xmalloc.c between version 1.36 and 1.37

version 1.36, 2019/11/12 22:32:48 version 1.37, 2022/03/13 23:27:54
Line 85 
Line 85 
   
         len = strlen(str) + 1;          len = strlen(str) + 1;
         cp = xmalloc(len);          cp = xmalloc(len);
         strlcpy(cp, str, len);          return memcpy(cp, str, len);
         return cp;  
 }  }
   
 int  int

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37