summaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
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 566bbfd20..819eaf57a 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: xmalloc.c,v 1.9 2001/01/21 19:06:02 markus Exp $"); 16RCSID("$OpenBSD: xmalloc.c,v 1.10 2001/01/28 20:53:21 stevesk Exp $");
17 17
18#include "xmalloc.h" 18#include "xmalloc.h"
19#include "log.h" 19#include "log.h"
@@ -51,7 +51,7 @@ xfree(void *ptr)
51char * 51char *
52xstrdup(const char *str) 52xstrdup(const char *str)
53{ 53{
54 int len = strlen(str) + 1; 54 size_t len = strlen(str) + 1;
55 55
56 char *cp = xmalloc(len); 56 char *cp = xmalloc(len);
57 strlcpy(cp, str, len); 57 strlcpy(cp, str, len);