From 72588a74dcd21c17db14142d0c6b895d57a01e44 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 9 May 2005 20:48:17 +0000 Subject: [PATCH] increase last_prompt buffer size --- src/sigar_getline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigar_getline.c b/src/sigar_getline.c index 1e004891..e91ca266 100644 --- a/src/sigar_getline.c +++ b/src/sigar_getline.c @@ -1184,7 +1184,7 @@ gl_fixup(char *prompt, int change, int cursor) static int gl_shift; /* index of first on screen character */ static int off_right; /* true if more text right of screen */ static int off_left; /* true if more text left of screen */ - static char last_prompt[80] = ""; + static char last_prompt[BUF_SIZE] = ""; int left = 0, right = -1; /* bounds for redraw */ int padl; /* how much to erase at end of line */ int backup; /* how far to backup before fixing */