summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rcs/rcsutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c
index 2dff77b1d21..9e3177773cb 100644
--- a/usr.bin/rcs/rcsutil.c
+++ b/usr.bin/rcs/rcsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.c,v 1.30 2007/05/29 00:19:10 ray Exp $ */
+/* $OpenBSD: rcsutil.c,v 1.31 2007/07/19 06:37:58 ray Exp $ */
/*
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -600,7 +600,7 @@ rcs_strsplit(const char *str, const char *sep)
cp = xstrdup(str);
av = xmalloc(sizeof(*av));
av->str = cp;
- av->argv = xcalloc(i + 1, sizeof(*(av->argv)));
+ av->argv = xmalloc(sizeof(*(av->argv)));
while ((p = strsep(&cp, sep)) != NULL) {
av->argv[i++] = p;