delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/10/29/07:01:28

From: pavenis AT lanet DOT lv
To: gcc-patches AT gcc DOT gnu DOT org
Date: Mon, 29 Oct 2001 13:59:12 +0200
MIME-Version: 1.0
Subject: Fix typo in protoize.c
Cc: djgpp-workers AT delorie DOT com
Message-ID: <3BDD60B0.12568.AB8D80@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

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 AT lanet DOT 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);
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019