summaryrefslogtreecommitdiffstats
path: root/prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'prompt.c')
-rw-r--r--prompt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/prompt.c b/prompt.c
index f374101..50ced97 100644
--- a/prompt.c
+++ b/prompt.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.
@@ -85,9 +85,9 @@ ap_str(s)
{
int len;
- len = strlen(s);
+ len = (int) strlen(s);
if (mp + len >= message + PROMPT_SIZE)
- len = message + PROMPT_SIZE - mp - 1;
+ len = (int) (message + PROMPT_SIZE - mp - 1);
strncpy(mp, s, len);
mp += len;
*mp = '\0';
OpenPOWER on IntegriCloud