diff options
Diffstat (limited to 'externaleditor.c')
-rw-r--r-- | externaleditor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/externaleditor.c b/externaleditor.c index 407dd27..404b906 100644 --- a/externaleditor.c +++ b/externaleditor.c @@ -148,9 +148,9 @@ open_external_editor(struct tab *t, const char *contents, const char *suffix, if (suffix == NULL) suffix = ""; - filename = g_malloc(strlen(temp_dir) + strlen("/xxxtermXXXXXX") + + filename = g_malloc(strlen(temp_dir) + strlen(PS "xxxtermXXXXXX") + strlen(suffix) + 1); - sprintf(filename, "%s/xxxtermXXXXXX%s", temp_dir, suffix); + sprintf(filename, "%s" PS "xxxtermXXXXXX%s", temp_dir, suffix); /* Create a temporary file */ fd = mkstemps(filename, strlen(suffix)); |