[patch]: Regression in windres
Kai Tietz
ktietz70@googlemail.com
Fri Feb 6 18:54:00 GMT 2009
Hello,
I noticed a typo in my last change of windres.
ChangeLog
2009-02-06 Kai Tietz <kai.tietz@onevision.com>
* windres.c (set_endianess): Copy name without leading '-'.
Is this patch ok for apply?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
Index: src/binutils/windres.c
===================================================================
--- src.orig/binutils/windres.c
+++ src/binutils/windres.c
@@ -1109,7 +1109,7 @@ set_endianess (bfd *abfd, const char *ta
if (!find_arch_match (tname, arches))
{
char *new_tname = (char *) alloca (strlen (hyp) + 1);
- strcpy (new_tname, hyp);
+ strcpy (new_tname, hyp + 1);
while ((hyp = strrchr (new_tname, '-')) != NULL)
{
*hyp = 0;
More information about the Binutils
mailing list