From c41fbaf9bc76f0b7650e448fbd88d0a9815f47fd Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 11 Jan 2016 01:09:50 +0000 Subject: Merge r293423, r293469: ntp 4.2.8p5 Relnotes: yes --- contrib/ntp/libntp/ntp_lineedit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/ntp/libntp/ntp_lineedit.c') diff --git a/contrib/ntp/libntp/ntp_lineedit.c b/contrib/ntp/libntp/ntp_lineedit.c index a2b2d29..ebd456a 100644 --- a/contrib/ntp/libntp/ntp_lineedit.c +++ b/contrib/ntp/libntp/ntp_lineedit.c @@ -29,6 +29,7 @@ #include "ntp.h" #include "ntp_stdlib.h" #include "ntp_lineedit.h" +#include "safecast.h" #define MAXEDITLINE 512 @@ -213,7 +214,7 @@ ntp_readline( line = fgets(line_buf, sizeof(line_buf), stdin); if (NULL != line && *line) { - *pcount = strlen(line); + *pcount = (int)strlen(line); /* cannot overflow here */ line = estrdup(line); } else line = NULL; -- cgit v1.1