Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] Re: (PR#3612) Legend bug
Home

[Freeciv-Dev] Re: (PR#3612) Legend bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx, kersten@xxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3612) Legend bug
From: "Ben Webb" <ben@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 5 Mar 2003 09:03:11 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Wed, Mar 05, 2003 at 04:59:34AM -0800, freeciv-dev-bounce@xxxxxxxxxxx wrote:
> [jdorje - Wed Mar  5 01:22:01 2003]:
> > [ChrisK@xxxxxxxx - Tue Mar  4 22:13:38 2003]:
> > 
> > > The legend translations existing in *.po are not shown in the nation
> > > dialog.
> > 
> > Oops.
> > 
> > jason
> 
> The following patch seems to do the trick.

+    pl->legend = _(mystrdup(p->legend));

Don't you mean
     pl->legend = mystrdup(_(p->legend));
?

Your approach will throw away a pointer...

        Ben
-- 
ben@xxxxxxxxxxxxxxxxxxxxxx           http://bellatrix.pcl.ox.ac.uk/~ben/
"Mediocrity knows nothing higher than itself but talent instantly 
recognizes genius."
        - Sir Arthur Conan Doyle



[Prev in Thread] Current Thread [Next in Thread]