Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
Home

[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Paul Zastoupil <paulz@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Thu, 6 Sep 2001 22:30:31 -0700 (PDT)

On Thu, 6 Sep 2001, Paul Zastoupil wrote:
> > 
> > Why is it that you need to copy the string at all?  What's wrong with
> > this?
> > 
> > static void wall(char *str) 
> > { 
> >   notify_conn_ex(&game.game_connections,-1,-1,E_MESSAGE_WALL, 
> >                  _("Server Operator: %s"),str); 
> > }
> 
> Well, I guess because we don't know that str is safe?

What do you mean, "safe"?  It's limited to the MAX_LEN_CMD.  I think you can
assume that a function that takes a C string as an argument will get a C
string.



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