diff options
author | delphij <delphij@FreeBSD.org> | 2016-01-18 19:13:54 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-01-18 19:13:54 +0000 |
commit | fa1e90c82bb54806d86166769a4547bf68c3e727 (patch) | |
tree | fb469219be6a56d727e63953151fbca9a019057d /contrib/less/lsystem.c | |
parent | 119cebf8a0b980468f7ed411c651dd92ff2a0a88 (diff) | |
download | FreeBSD-src-fa1e90c82bb54806d86166769a4547bf68c3e727.zip FreeBSD-src-fa1e90c82bb54806d86166769a4547bf68c3e727.tar.gz |
MFC r293190: MFV r293125: less v481.
Relnotes: yes
Diffstat (limited to 'contrib/less/lsystem.c')
-rw-r--r-- | contrib/less/lsystem.c | 4 |
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); |