~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to binutils/nlmconv.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* nlmconv.c -- NLM conversion program
2
2
   Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3
 
   2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
3
   2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4
4
 
5
5
   This file is part of GNU Binutils.
6
6
 
476
476
                    ++sym->name;
477
477
                  else
478
478
                    {
479
 
                      char *new;
 
479
                      char *new_name;
480
480
 
481
 
                      new = xmalloc (strlen (bfd_asymbol_name (sym)) + 1);
482
 
                      new[0] = outlead;
483
 
                      strcpy (new + 1, bfd_asymbol_name (sym) + 1);
484
 
                      sym->name = new;
 
481
                      new_name = xmalloc (strlen (bfd_asymbol_name (sym)) + 1);
 
482
                      new_name[0] = outlead;
 
483
                      strcpy (new_name + 1, bfd_asymbol_name (sym) + 1);
 
484
                      sym->name = new_name;
485
485
                    }
486
486
                }
487
487
            }
488
488
          else
489
489
            {
490
 
              char *new;
 
490
              char *new_name;
491
491
 
492
 
              new = xmalloc (strlen (bfd_asymbol_name (sym)) + 2);
493
 
              new[0] = outlead;
494
 
              strcpy (new + 1, bfd_asymbol_name (sym));
495
 
              sym->name = new;
 
492
              new_name = xmalloc (strlen (bfd_asymbol_name (sym)) + 2);
 
493
              new_name[0] = outlead;
 
494
              strcpy (new_name + 1, bfd_asymbol_name (sym));
 
495
              sym->name = new_name;
496
496
            }
497
497
        }
498
498