=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/root.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/cvs/root.c 2007/09/02 12:13:00 1.41 --- src/usr.bin/cvs/root.c 2007/09/10 14:06:14 1.42 *************** *** 1,4 **** ! /* $OpenBSD: root.c,v 1.41 2007/09/02 12:13:00 tobias Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: root.c,v 1.42 2007/09/10 14:06:14 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 133,142 **** pp = strchr(sp, ':'); if (pp != NULL) { *(pp++) = '\0'; ! root->cr_port = strtonum(pp, 1, 65535, &errstr); if (errstr != NULL) fatal("port specification in CVSROOT is %s", errstr); } root->cr_host = sp; --- 133,144 ---- pp = strchr(sp, ':'); if (pp != NULL) { *(pp++) = '\0'; ! ! i = strtonum(pp, 1, 65535, &errstr); if (errstr != NULL) fatal("port specification in CVSROOT is %s", errstr); + root->cr_port = pp; } root->cr_host = sp;