CVSROOT:        /cvsroot/groff
Module name:    groff
Branch:         
Changes by:     Werner LEMBERG <[EMAIL PROTECTED]>      05/06/20 21:31:50

Modified files:
        src/preproc/soelim: soelim.cpp 

Log message:
        * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
        earlier to get correct error message.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/groff/groff/src/preproc/soelim/soelim.cpp.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: groff/src/preproc/soelim/soelim.cpp
diff -u groff/src/preproc/soelim/soelim.cpp:1.6 
groff/src/preproc/soelim/soelim.cpp:1.7
--- groff/src/preproc/soelim/soelim.cpp:1.6     Thu May 26 21:02:01 2005
+++ groff/src/preproc/soelim/soelim.cpp Mon Jun 20 21:31:49 2005
@@ -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 ([EMAIL PROTECTED])
 
@@ -159,12 +159,12 @@
                                                    &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();


_______________________________________________
Groff-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to