This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch]: Regression in windres
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Fri, 6 Feb 2009 19:54:32 +0100
- Subject: [patch]: Regression in windres
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;