From 54c142933a474a0e0e0a5c007b8b8f0c242d237b Mon Sep 17 00:00:00 2001
From: Sergey Safarov <s.safarov@gmail.com>
Date: Thu, 13 Dec 2018 07:02:22 +0000
Subject: [PATCH] FS-11345: Fixed Werror=format-truncation on lib/esl

---
 libs/esl/fs_cli.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c
index 8c1bf24933..3bdadf11d3 100644
--- a/libs/esl/fs_cli.c
+++ b/libs/esl/fs_cli.c
@@ -78,7 +78,7 @@ static int connected = 0;
 static int allow_ctl_c = 0;
 static char bare_prompt_str[514] = "";
 static int bare_prompt_str_len = 0;
-static char prompt_str[512] = "";
+static char prompt_str[1024] = "";
 static char prompt_color[12] = {ESL_SEQ_DEFAULT_COLOR};
 static char input_text_color[12] = {ESL_SEQ_DEFAULT_COLOR};
 static char output_text_color[12] = {ESL_SEQ_DEFAULT_COLOR};
@@ -700,7 +700,7 @@ static void redisplay(void)
 			char s1[12], s2[12] = "";
 			
 			putchar('\r');
-			snprintf(s1, sizeof(s1), "\033[%dC", bare_prompt_str_len);			
+			snprintf(s1, sizeof(s1), "\033[%dC", bare_prompt_str_len);
 			if (pos) snprintf(s2, sizeof(s2), "\033[%dC", pos);
 			printf("%s%s",s1,s2);
 		}
@@ -1418,7 +1418,7 @@ int main(int argc, char *argv[])
 	esl_handle_t handle = {{0}};
 	int count = 0;
 	const char *line = NULL;
-	char cmd_str[1024] = "";
+	char cmd_str[2048] = "";
 	cli_profile_t *profile = NULL;
 	int argv_use_history_file = 1;
 	int use_history_file = 0;