summaryrefslogtreecommitdiff
path: root/usr.bin/paste/paste.c
diff options
context:
space:
mode:
authorrtr <rtr@NetBSD.org>2006-04-01 06:36:58 +0000
committerrtr <rtr@NetBSD.org>2006-04-01 06:36:58 +0000
commit75de03412e1539c66ca6090791a8d9aa8efc302f (patch)
tree3855d58dcda840f49194923edd4f71a6d22cae31 /usr.bin/paste/paste.c
parentdf14d9f34e6f5927865ae830df0cc2f43c2dd3d2 (diff)
cast line_len to (int) to avoid warn.
Diffstat (limited to 'usr.bin/paste/paste.c')
-rw-r--r--usr.bin/paste/paste.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index d542f80553f..5b535f59fa3 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -1,4 +1,4 @@
-/* $NetBSD: paste.c,v 1.11 2006/04/01 06:31:43 rtr Exp $ */
+/* $NetBSD: paste.c,v 1.12 2006/04/01 06:36:58 rtr Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n"
#ifndef lint
/*static char sccsid[] = "from: @(#)paste.c 8.1 (Berkeley) 6/6/93";*/
-__RCSID("$NetBSD: paste.c,v 1.11 2006/04/01 06:31:43 rtr Exp $");
+__RCSID("$NetBSD: paste.c,v 1.12 2006/04/01 06:36:58 rtr Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -138,7 +138,7 @@ parallel(int argc, char **argv)
/* Remove any trailing newline - check for last line */
if (line[line_len - 1] == '\n')
line_len--;
- printf("%.*s", line_len, line);
+ printf("%.*s", (int)line_len, line);
}
if (!output)