diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-01-28 20:53:22 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-01-28 20:53:22 +0000 |
commit | 71a16de617b6bcb14507d556f80ad96aaab1b470 (patch) | |
tree | a5c002ab5af2ad05979dcb93ae8864f2a7077291 /usr.bin/ssh/xmalloc.c | |
parent | 51c3b3132c833d929e42634cb5bad9adb2e3add9 (diff) |
use size_t for strlen() return. ok markus@
Diffstat (limited to 'usr.bin/ssh/xmalloc.c')
-rw-r--r-- | usr.bin/ssh/xmalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/xmalloc.c b/usr.bin/ssh/xmalloc.c index 566bbfd2027..819eaf57a86 100644 --- a/usr.bin/ssh/xmalloc.c +++ b/usr.bin/ssh/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); |