summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwl <wl>2005-06-20 21:31:49 +0000
committerwl <wl>2005-06-20 21:31:49 +0000
commit9708fb421789954abcc625949fbe58534fc6c058 (patch)
tree14ec655123ca12e39c6dc4c10949964cd77fcfd2 /src
parent1127fa3df8d618530c9a06198248d75dda8167cf (diff)
downloadgroff-9708fb421789954abcc625949fbe58534fc6c058.tar.gz
* src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
earlier to get correct error message.
Diffstat (limited to 'src')
-rw-r--r--src/preproc/soelim/soelim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preproc/soelim/soelim.cpp b/src/preproc/soelim/soelim.cpp
index 9658333c..235dfe66 100644
--- a/src/preproc/soelim/soelim.cpp
+++ b/src/preproc/soelim/soelim.cpp
@@ -1,5 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989-1992, 2000, 2001, 2003, 2004
+/* Copyright (C) 1989-1992, 2000, 2001, 2003, 2004, 2005
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
@@ -159,12 +159,12 @@ int do_file(const char *filename)
&file_name_in_path);
int err = errno;
string whole_filename(file_name_in_path ? file_name_in_path : filename);
+ whole_filename += '\0';
a_delete file_name_in_path;
if (fp == 0) {
error("can't open `%1': %2", whole_filename.contents(), strerror(err));
return 0;
}
- whole_filename += '\0';
current_filename = whole_filename.contents();
current_lineno = 1;
set_location();