summaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-29 08:10:11 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-29 08:10:11 +0000
commit91fd62af63cc3b7660930240042e71cff85abcb2 (patch)
tree1c51df073cd7b76b6715e7008b0c7e1314b14d8f /xmalloc.c
parentd53902049e467f68490aae4988e466fc9a99abee (diff)
downloadopenssh-git-91fd62af63cc3b7660930240042e71cff85abcb2.tar.gz
- stevesk@cvs.openbsd.org 2001/01/28 20:53:21
[xmalloc.c] use size_t for strlen() return. ok markus@
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index 566bbfd2..819eaf57 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -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);