From: <dan...@us...> - 2009-10-20 18:35:11
|
Revision: 1396 http://cegcc.svn.sourceforge.net/cegcc/?rev=1396&view=rev Author: dannybackx Date: 2009-10-20 18:35:04 +0000 (Tue, 20 Oct 2009) Log Message: ----------- Fix "Can't detect architecture" bug in windres again after binutils 2.20 import. Modified Paths: -------------- trunk/cegcc/src/binutils/ChangeLog.ce trunk/cegcc/src/binutils/binutils/windres.c Modified: trunk/cegcc/src/binutils/ChangeLog.ce =================================================================== --- trunk/cegcc/src/binutils/ChangeLog.ce 2009-10-19 18:08:29 UTC (rev 1395) +++ trunk/cegcc/src/binutils/ChangeLog.ce 2009-10-20 18:35:04 UTC (rev 1396) @@ -1,3 +1,8 @@ +2009-10-20 Danny Backx <dan...@us...> + + * binutils/windres.c : Fix "windres can't detect + architecture" problem again, after binutils 2.20 import. + 2009-04-28 Alan Modra <am...@bi...> * ld/deffilep.y (STACKSIZE_K): Rename from STACKSIZE. Modified: trunk/cegcc/src/binutils/binutils/windres.c =================================================================== --- trunk/cegcc/src/binutils/binutils/windres.c 2009-10-19 18:08:29 UTC (rev 1395) +++ trunk/cegcc/src/binutils/binutils/windres.c 2009-10-20 18:35:04 UTC (rev 1396) @@ -1104,7 +1104,7 @@ if (!find_arch_match (tname, arches)) { char *new_tname = (char *) alloca (strlen (hyp) + 1); - strcpy (new_tname, hyp + 1); + strcpy (new_tname, hyp); while ((hyp = strrchr (new_tname, '-')) != NULL) { *hyp = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |