aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-29 15:48:10 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-29 15:48:10 +0530
commit6ea33f1db3fcfdbd605b551f897b1844ef102ceb (patch)
treebbe422cd43d2e349d9eab4fb66252d16820281ba /src
parente9ff65a7b522d492d22eeb969a828fcae872eaf1 (diff)
downloadnnn-6ea33f1db3fcfdbd605b551f897b1844ef102ceb.tar.gz
Remove redundant name copy
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 23383d2..9a140ce 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -690,7 +690,6 @@ static haiku_nm_h haiku_hnd;
#endif /* __GNUC__ */
/* Forward declarations */
-static size_t xstrlcpy(char *dest, const char *src, size_t n);
static void redraw(char *path);
static int spawn(char *file, char *arg1, char *arg2, const char *dir, uchar flag);
static int (*nftw_fn)(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf);
@@ -796,11 +795,8 @@ static void printmsg(const char *msg)
static void printwait(const char *msg, int *presel)
{
printmsg(msg);
- if (presel) {
+ if (presel)
*presel = MSGWAIT;
- if (ndents)
- xstrlcpy(g_ctx[cfg.curctx].c_name, dents[cur].name, NAME_MAX + 1);
- }
}
/* Kill curses and display error before exiting */