summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-11-25 12:14:00 +1100
committerChris Johns <chrisj@rtems.org>2022-11-25 12:16:02 +1100
commit904a9112de96989cc258157ebfcfb493cb2b5b58 (patch)
tree46d429e7d750adea036e9b2d0be32ee5a80de4bd
parentbsps/riscv: Simplify PLIC support (diff)
downloadrtems-master.tar.bz2
libmisc/shell: Fix edit Coverity errorHEADmaster
Coverity Id: CID 1517029, CID 1517030, CID 1517031
-rw-r--r--cpukit/libmisc/shell/main_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c
index 99871204b7..191eefa19d 100644
--- a/cpukit/libmisc/shell/main_edit.c
+++ b/cpukit/libmisc/shell/main_edit.c
@@ -757,7 +757,7 @@ static void get_console_size(struct env *env) {
#elif defined(__rtems__)
char* e;
env->lines = 25;
- env->lines = 80;
+ env->cols = 80;
e = getenv("LINES");
if (e != NULL) {
int lines = strtol(e, 0, 10);