summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_edit.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-02-15libmisc/shell/main_edit.c: User cannot cut using ctrl e and xzack1-2/+1
Closes #4557
2023-01-31libmisc/shell/edit: Return if no memory in move_gapChris Johns1-0/+3
Closes #4835
2023-01-31libmisc/shell/edit: Fix closing the editorChris Johns1-11/+4
Closes #4834
2022-11-25libmisc/shell: Fix edit Coverity errorChris Johns1-1/+1
Coverity Id: CID 1517029, CID 1517030, CID 1517031
2022-11-23libmisc/shell: Support terminal size as env variablesChris Johns1-1/+16
Closes #4763
2022-06-15cpukit: Fixes for GCC 12 warningsChris Johns1-0/+2
Updates #6442
2021-06-09main_edit.c: get rid of malloc warningRyan Long1-8/+8
A warning was present when building RTEMS that stated that the argument for malloc() exceeded the maximum object size. To get rid of this, I changed many places where 'int' was being used to 'size_t'.
2021-03-08main_edit.c: Fix Unchecked return value (CID #1255318)Ryan Long1-1/+1
CID 1255318: Unchecked return value in display_line(). Updates #4257
2020-10-15shell/main_edit.c: Fix string truncation warningFrank Kühndel1-5/+7
Using strlcpy() instead of strncpy(): 1) Prevents the compiler warnings 2) Ensures, the string is NUL terminated. 3) Avoids that strncpy() unnecessary fills the unused part of the buffer with 0 bytes. (Note that realpath() also returns NULL if the file does not exist - that happens always if someone creates a new file with the editor of the shell.)
2020-10-15shell/main_edit.c: Fix use of wrong constantFrank Kühndel1-1/+2
realpath() requires a buffer of size PATH_MAX and not of size FILENAME_MAX according to 'man realpath (3)'.
2019-03-14main_edit.c: Use strncpy() to eliminate potential buffer overflow.Joel Sherrill1-4/+5
2014-12-01libmisc/shell: Edit history hack is corrupting memory. Remove it.Chris Johns1-24/+1
The hack was a debug aid and is not needed. Close #2203.
2014-11-26shell: Include missing headerSebastian Huber1-0/+1
2014-11-25main_edit.c: Do not reference beyond end of arrayJoel Sherrill1-0/+5
2014-11-25shell/main_edit.c: Note return value not checkedJoel Sherrill1-1/+1
Coverity Id 1255320 spotted an unchecked return value.
2014-11-25cpukit/libmisc/shell/main_edit.c: Fix use after free()Joel Sherrill1-0/+8
Coverity Id 1255353. Read from pointer after free().
2014-11-05shell/main_edit.c: Fix warningsJoel Sherrill1-8/+10
2014-10-24shell: Add an editor to the shell.Chris Johns1-0/+2259
This is a small (21K on sparc) editor that provides some powerful features useful when a file needs editing on an embedded board. No need to copy files off, edit, copy back.