This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix typo in protoize.c


There is a type in gcc/protoize.c (both gcc-3_0-branch and trunk) which 
prevents it to be built for DJGPP. 

Andris


2001-10-29  Andris Pavenis  <pavenis@lanet.lv>

	* gcc/protoize.c: (edit_file) Fix typo.


--- protoize.c~1	Fri Mar 16 03:02:46 2001
+++ protoize.c	Mon Oct 29 13:48:46 2001
@@ -4343,7 +4343,7 @@ edit_file (hp)
 #ifdef __MSDOS__
       /* MSDOS filenames are restricted to 8.3 format, so we save `foo.c'
          as `foo.<save_suffix>'.  */
-      new_filename[(strlen (convert_filename) - 1] = '\0';
+      new_filename[strlen (convert_filename) - 1] = '\0';
 #endif
       strcat (new_filename, save_suffix);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]