mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-12 04:39:28 +00:00
- stevesk@cvs.openbsd.org 2001/01/28 20:53:21
[xmalloc.c] use size_t for strlen() return. ok markus@
This commit is contained in:
parent
d53902049e
commit
91fd62af63
@ -14,6 +14,9 @@
|
||||
- stevesk@cvs.openbsd.org 2001/01/28 22:27:05
|
||||
[authfile.c]
|
||||
spelling. use sizeof vs. strlen(). ok markus@
|
||||
- stevesk@cvs.openbsd.org 2001/01/28 20:53:21
|
||||
[xmalloc.c]
|
||||
use size_t for strlen() return. ok markus@
|
||||
- niklas@cvs.openbsd.org 2001/01/29 1:59:14
|
||||
[atomicio.h canohost.h clientloop.h deattack.h dh.h dispatch.h
|
||||
groupaccess.c groupaccess.h hmac.h hostfile.h includes.h kex.h
|
||||
|
@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: xmalloc.c,v 1.9 2001/01/21 19:06:02 markus Exp $");
|
||||
RCSID("$OpenBSD: xmalloc.c,v 1.10 2001/01/28 20:53:21 stevesk Exp $");
|
||||
|
||||
#include "xmalloc.h"
|
||||
#include "log.h"
|
||||
@ -51,7 +51,7 @@ xfree(void *ptr)
|
||||
char *
|
||||
xstrdup(const char *str)
|
||||
{
|
||||
int len = strlen(str) + 1;
|
||||
size_t len = strlen(str) + 1;
|
||||
|
||||
char *cp = xmalloc(len);
|
||||
strlcpy(cp, str, len);
|
||||
|
Loading…
Reference in New Issue
Block a user