diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-03-13 19:56:15 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-03-13 19:56:15 +0000 |
commit | 0e677dfed5a0048848fe1bec00999dd5d58f6645 (patch) | |
tree | b85ac7a5ce97ddec7ae50b1c4c27a4af53776e20 /usr.bin | |
parent | 501ddec31037159e816e42d52b020edf47185847 (diff) |
unbreak, and do this correct.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c index 5f5bd4abe7a..e51336db4d5 100644 --- a/usr.bin/cvs/proto.c +++ b/usr.bin/cvs/proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proto.c,v 1.42 2005/03/13 19:52:26 joris Exp $ */ +/* $OpenBSD: proto.c,v 1.43 2005/03/13 19:56:14 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -736,7 +736,7 @@ cvs_getresp(struct cvsroot *root) if ((len = strlen(cvs_proto_buf)) != 0) { /* if len - 1 != '\n' the line is truncated */ - if (cvs_proto_buf[len - 1] == '\n') { + if (cvs_proto_buf[len - 1] == '\n') cvs_proto_buf[--len] = '\0'; } |