summaryrefslogtreecommitdiffstats
path: root/contrib/less/lsystem.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2016-01-05 05:25:16 +0000
committerdelphij <delphij@FreeBSD.org>2016-01-05 05:25:16 +0000
commit03d374e3a6bf9b6f27de2a5eb994a1850de1e4fb (patch)
tree587451b5b5628b51a1932678fc08292d250617f9 /contrib/less/lsystem.c
parentea7f4bcbda6247eed1adbc86025969a1c5cfa442 (diff)
parent479faf106b9c06110ca6358bfbd0ef45b838cbc8 (diff)
downloadFreeBSD-src-03d374e3a6bf9b6f27de2a5eb994a1850de1e4fb.zip
FreeBSD-src-03d374e3a6bf9b6f27de2a5eb994a1850de1e4fb.tar.gz
MFV r293125: less v481.
MFC after: 1 month Relnotes: yes
Diffstat (limited to 'contrib/less/lsystem.c')
-rw-r--r--contrib/less/lsystem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/less/lsystem.c b/contrib/less/lsystem.c
index 674e5a2..8a7cb8f 100644
--- a/contrib/less/lsystem.c
+++ b/contrib/less/lsystem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2012 Mark Nudelman
+ * Copyright (C) 1984-2015 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -137,7 +137,7 @@ lsystem(cmd, donemsg)
char *esccmd = shell_quote(cmd);
if (esccmd != NULL)
{
- int len = strlen(shell) + strlen(esccmd) + 5;
+ int len = (int) (strlen(shell) + strlen(esccmd) + 5);
p = (char *) ecalloc(len, sizeof(char));
SNPRINTF3(p, len, "%s %s %s", shell, shell_coption(), esccmd);
free(esccmd);
OpenPOWER on IntegriCloud