Age | Commit message (Collapse) | Author |
|
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.)
|
|
realpath() requires a buffer of size PATH_MAX and not of size
FILENAME_MAX according to 'man realpath (3)'.
|
|
|
|
The hack was a debug aid and is not needed.
Close #2203.
|
|
|
|
|
|
Coverity Id 1255320 spotted an unchecked return value.
|
|
Coverity Id 1255353. Read from pointer after free().
|
|
|
|
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.
|