diff options
-rw-r--r-- | src/firejail/env.c | 8 | ||||
-rw-r--r-- | src/libtracelog/libtracelog.c | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/firejail/env.c b/src/firejail/env.c index 1a6236407..a5b3ccfb3 100644 --- a/src/firejail/env.c +++ b/src/firejail/env.c | |||
@@ -132,12 +132,8 @@ void env_defaults(void) { | |||
132 | if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0) | 132 | if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0) |
133 | errExit("setenv"); | 133 | errExit("setenv"); |
134 | 134 | ||
135 | // build the window title and set it | 135 | // set the window title |
136 | char *title; | 136 | printf("\033]0;firejail %s\007\n", cfg.window_title); |
137 | if (asprintf(&title, "\033]0;firejail %s\007\n", cfg.window_title) == -1) | ||
138 | errExit("asprintf"); | ||
139 | printf("%s", title); | ||
140 | free(title); | ||
141 | } | 137 | } |
142 | 138 | ||
143 | // parse and store the environment setting | 139 | // parse and store the environment setting |
diff --git a/src/libtracelog/libtracelog.c b/src/libtracelog/libtracelog.c index dedba5513..ff884c7d7 100644 --- a/src/libtracelog/libtracelog.c +++ b/src/libtracelog/libtracelog.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <sys/stat.h> | 31 | #include <sys/stat.h> |
32 | #include <syslog.h> | 32 | #include <syslog.h> |
33 | #include <dirent.h> | 33 | #include <dirent.h> |
34 | #include <limits.h> | ||
34 | 35 | ||
35 | //#define DEBUG | 36 | //#define DEBUG |
36 | 37 | ||