Neil Parks).
do_browser()
- Added space and - keys to do page up and down.
+ cwd_tab_completion(), input_tab()
+ - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
- nano.c:
ABCD()
- New function, figures out what kbinput to return given
/* Okie, if there's a / in the buffer, strip out the directory part */
if (strcmp(buf, "") && strstr(buf, "/")) {
- dirName = malloc(strlen(buf) + 1);
+ dirName = nmalloc(strlen(buf) + 1);
tmp = buf + strlen(buf);
while (*tmp != '/' && tmp != buf)
tmp--;
/* Make a local copy of the string -- up to the position of the
cursor */
- matchBuf = (char *) calloc(strlen(buf) + 2, sizeof(char));
+ matchBuf = (char *) nmalloc((strlen(buf) + 2) * sizeof(char));
strncpy(matchBuf, buf, place);
tmp = matchBuf;