summaryrefslogtreecommitdiff
path: root/cpukit/libmisc/shell/main_edit.c (follow)
AgeCommit message (Collapse)Author
2020-10-15shell/main_edit.c: Fix string truncation warningFrank Kühndel
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ühndel
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 Sherrill
2014-12-01libmisc/shell: Edit history hack is corrupting memory. Remove it.Chris Johns
The hack was a debug aid and is not needed. Close #2203.
2014-11-26shell: Include missing headerSebastian Huber
2014-11-25main_edit.c: Do not reference beyond end of arrayJoel Sherrill
2014-11-25shell/main_edit.c: Note return value not checkedJoel Sherrill
Coverity Id 1255320 spotted an unchecked return value.
2014-11-25cpukit/libmisc/shell/main_edit.c: Fix use after free()Joel Sherrill
Coverity Id 1255353. Read from pointer after free().
2014-11-05shell/main_edit.c: Fix warningsJoel Sherrill
2014-10-24shell: Add an editor to the shell.Chris Johns
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.