aboutsummaryrefslogtreecommitdiff
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 4340ab7..68485db 100644
--- a/noice.c
+++ b/noice.c
@@ -19,6 +19,7 @@
#include <string.h>
#include <unistd.h>
+#include "safetitle.h"
#include "util.h"
#ifdef DEBUG
@@ -698,6 +699,7 @@ nochange:
/* Save history */
strlcpy(oldpath, path, sizeof(oldpath));
strlcpy(path, dir, sizeof(path));
+ safetitle(path);
/* Reset filter */
strlcpy(fltr, ifilter, sizeof(fltr));
goto begin;
@@ -731,6 +733,7 @@ nochange:
goto nochange;
}
strlcpy(path, newpath, sizeof(path));
+ safetitle(path);
/* Reset filter */
strlcpy(fltr, ifilter, sizeof(fltr));
goto begin;
@@ -801,6 +804,7 @@ nochange:
goto nochange;
}
strlcpy(path, newpath, sizeof(path));
+ safetitle(path);
/* Reset filter */
strlcpy(fltr, ifilter, sizeof(fltr));
DPRINTF_S(path);
@@ -816,6 +820,7 @@ nochange:
goto nochange;
}
strlcpy(path, tmp, sizeof(path));
+ safetitle(path);
/* Reset filter */
strlcpy(fltr, ifilter, sizeof(fltr));
DPRINTF_S(path);