diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-02-25 20:32:49 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-02-25 20:32:49 +0000 |
commit | eaf739340cc437965c78359443b2c66b50cc3f23 (patch) | |
tree | b7a9dfc6ad7d6f1872869166103ebd5adca5e948 /usr.bin/cvs/file.c | |
parent | cee89bd87c26afade5133b96abe198b2676da3e6 (diff) |
- switch to rcsnum_parse() where appropriate
- make rcsnum_parse() fail if it encounters an invalid character
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 356c7d6d6ea..007c8d5e9d8 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.52 2005/01/24 16:41:28 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.53 2005/02/25 20:32:48 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -148,8 +148,7 @@ cvs_file_init(void) TAILQ_INIT(&cvs_ign_pats); - if (((cvs_addedrev = rcsnum_alloc()) == NULL) || - (rcsnum_aton("0", NULL, cvs_addedrev) < 0)) + if ((cvs_addedrev = rcsnum_parse("0")) == NULL) return (-1); /* standard patterns to ignore */ |