diff options
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 1e22d333d..530a40a8c 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -1129,7 +1129,7 @@ static void save_input_to_file(void) | |||
1129 | print_statusline("Log file: "); | 1129 | print_statusline("Log file: "); |
1130 | current_line = less_gets(sizeof("Log file: ")-1); | 1130 | current_line = less_gets(sizeof("Log file: ")-1); |
1131 | if (current_line[0]) { | 1131 | if (current_line[0]) { |
1132 | fp = fopen(current_line, "w"); | 1132 | fp = fopen_for_write(current_line); |
1133 | if (!fp) { | 1133 | if (!fp) { |
1134 | msg = "Error opening log file"; | 1134 | msg = "Error opening log file"; |
1135 | goto ret; | 1135 | goto ret; |