=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/remote.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/cvs/remote.c 2007/01/26 11:19:44 1.12 +++ src/usr.bin/cvs/remote.c 2007/01/31 21:07:35 1.13 @@ -1,4 +1,4 @@ -/* $OpenBSD: remote.c,v 1.12 2007/01/26 11:19:44 joris Exp $ */ +/* $OpenBSD: remote.c,v 1.13 2007/01/31 21:07:35 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -151,7 +151,7 @@ void cvs_remote_send_file(const char *path) { - int l, fd; + int fd; FILE *out, *in; size_t ret, rw; off_t total; @@ -172,9 +172,7 @@ cvs_modetostr(st.st_mode, buf, sizeof(buf)); cvs_remote_output(buf); - l = snprintf(buf, sizeof(buf), "%lld", st.st_size); - if (l == -1 || l >= (int)sizeof(buf)) - fatal("cvs_remote_send_file: overflow"); + (void)xsnprintf(buf, sizeof(buf), "%lld", st.st_size); cvs_remote_output(buf); if ((in = fdopen(fd, "r")) == NULL)