summaryrefslogtreecommitdiff
path: root/usr.bin/csplit
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-07-17 17:11:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-07-17 17:11:33 +0000
commit48bfe30a39f85cc1f5a9e921bcd22d8fab4949bf (patch)
tree65e21ae69b166ab7126972a22efd18615aaf636b /usr.bin/csplit
parentaa397e73be712b3f07696c838b1950852ff72ede (diff)
Fix comment wrt snprintf
Diffstat (limited to 'usr.bin/csplit')
-rw-r--r--usr.bin/csplit/csplit.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/csplit/csplit.c b/usr.bin/csplit/csplit.c
index 9c257f836e7..b2decefe010 100644
--- a/usr.bin/csplit/csplit.c
+++ b/usr.bin/csplit/csplit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: csplit.c,v 1.1 2006/07/17 16:38:02 millert Exp $ */
+/* $OpenBSD: csplit.c,v 1.2 2006/07/17 17:11:32 millert Exp $ */
/* $FreeBSD: src/usr.bin/csplit/csplit.c,v 1.9 2004/03/22 11:15:03 tjr Exp $ */
/*-
@@ -257,12 +257,9 @@ cleanup(void)
return;
/*
- * NOTE: One cannot portably assume to be able to call snprintf()
- * from inside a signal handler. It does, however, appear to be safe
- * to do on FreeBSD. The solution to this problem is worse than the
- * problem itself.
+ * NOTE: One cannot portably assume to be able to call snprintf() from
+ * inside a signal handler. It is, however, safe to do on OpenBSD.
*/
-
for (i = 0; i < nfiles; i++) {
snprintf(fnbuf, sizeof(fnbuf), "%s%0*ld", prefix,
(int)sufflen, i);