diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-14 19:49:19 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-14 19:49:19 +0000 |
commit | b89c8a0d48c60ed6bf4440b7b3e217d8df068f42 (patch) | |
tree | 17776d313a091a59d8adec3839de5db82044a3be /usr.bin/cvs/rcs.c | |
parent | 89e22d556d6a3517beebb02c12e4a465dbb4aadf (diff) |
missing casts; ok joris
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index dcc65a27fab..2906624e7bc 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.58 2005/08/11 14:10:20 xsa Exp $ */ +/* $OpenBSD: rcs.c,v 1.59 2005/08/14 19:49:18 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -1554,7 +1554,7 @@ rcs_parse(RCSFILE *rfp) return (-1); } - pdp->rp_buf = (char *)malloc(RCS_BUFSIZE); + pdp->rp_buf = (char *)malloc((size_t)RCS_BUFSIZE); if (pdp->rp_buf == NULL) { rcs_errno = RCS_ERR_ERRNO; cvs_log(LP_ERRNO, "failed to allocate RCS parser buffer"); |