summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/diff3.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-01-31 21:07:37 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-01-31 21:07:37 +0000
commit63034cae876e861e61d3f799f694fd2113f446dc (patch)
tree754087f08190f74964ce0ff687bfadb2050e2500 /usr.bin/cvs/diff3.c
parent1c54385244a4350800cb127aa83b2aa07cde5234 (diff)
snprintf() -> xsnprintf()
Diffstat (limited to 'usr.bin/cvs/diff3.c')
-rw-r--r--usr.bin/cvs/diff3.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.bin/cvs/diff3.c b/usr.bin/cvs/diff3.c
index 9d2718a0a4b..1b2c81ede28 100644
--- a/usr.bin/cvs/diff3.c
+++ b/usr.bin/cvs/diff3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff3.c,v 1.33 2007/01/28 02:04:45 joris Exp $ */
+/* $OpenBSD: diff3.c,v 1.34 2007/01/31 21:07:35 xsa Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -72,7 +72,7 @@ static const char copyright[] =
#ifndef lint
static const char rcsid[] =
- "$OpenBSD: diff3.c,v 1.33 2007/01/28 02:04:45 joris Exp $";
+ "$OpenBSD: diff3.c,v 1.34 2007/01/31 21:07:35 xsa Exp $";
#endif /* not lint */
#include "includes.h"
@@ -276,13 +276,8 @@ diff3_internal(int argc, char **argv, const char *fmark, const char *rmark)
if (argc < 5)
return (-1);
- i = snprintf(f1mark, sizeof(f1mark), "<<<<<<< %s", fmark);
- if (i < 0 ||i >= (int)sizeof(f1mark))
- fatal("diff3_internal: truncation");
-
- i = snprintf(f3mark, sizeof(f3mark), ">>>>>>> %s", rmark);
- if (i < 0 ||i >= (int)sizeof(f3mark))
- fatal("diff3_internal: truncation");
+ (void)xsnprintf(f1mark, sizeof(f1mark), "<<<<<<< %s", fmark);
+ (void)xsnprintf(f3mark, sizeof(f3mark), ">>>>>>> %s", rmark);
increase();
m = readin(argv[0], &d13);