=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/proto.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/cvs/Attic/proto.c 2005/03/04 18:36:57 1.41 --- src/usr.bin/cvs/Attic/proto.c 2005/03/13 19:52:26 1.42 *************** *** 1,4 **** ! /* $OpenBSD: proto.c,v 1.41 2005/03/04 18:36:57 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: proto.c,v 1.42 2005/03/13 19:52:26 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 735,743 **** fputs(cvs_proto_buf, cvs_server_outlog); if ((len = strlen(cvs_proto_buf)) != 0) { ! if (cvs_proto_buf[len - 1] != '\n') { ! /* truncated line */ ! } else cvs_proto_buf[--len] = '\0'; } --- 735,742 ---- fputs(cvs_proto_buf, cvs_server_outlog); if ((len = strlen(cvs_proto_buf)) != 0) { ! /* if len - 1 != '\n' the line is truncated */ ! if (cvs_proto_buf[len - 1] == '\n') { cvs_proto_buf[--len] = '\0'; }