Re: [Flightgear-devel] MAX_CALLSIGN_LEN

2007-02-22 Thread Csaba Halász
On 2/22/07, Nick Warne [EMAIL PROTECTED] wrote: Is this correct? Yes. In C you need to terminate strings by a 0 byte. So you need 8 bytes for a maximum of 7 characters. Greets, Jester - Take Surveys. Earn Cash. Influence

Re: [Flightgear-devel] MAX_CALLSIGN_LEN

2007-02-22 Thread Nick Warne
On Thursday 22 February 2007 16:13:59 Csaba Halász wrote: On 2/22/07, Nick Warne [EMAIL PROTECTED] wrote: Is this correct? Yes. In C you need to terminate strings by a 0 byte. So you need 8 bytes for a maximum of 7 characters. Greets, Jester Yes, I understand that - but what seems to be

Re: [Flightgear-devel] MAX_CALLSIGN_LEN

2007-02-22 Thread Nick Warne
missed the list off... -- Forwarded Message -- Subject: Re: [Flightgear-devel] MAX_CALLSIGN_LEN Date: Thursday 22 February 2007 From: Nick Warne [EMAIL PROTECTED] To: Csaba Halász [EMAIL PROTECTED] On Thursday 22 February 2007 16:40:57 Csaba Halász wrote: On 2/22/07, Nick

Re: [Flightgear-devel] MAX_CALLSIGN_LEN

2007-02-22 Thread Csaba Halász
On 2/22/07, Nick Warne [EMAIL PROTECTED] wrote: I don't see the sense (nor logic) in trimming a string _every_ packet when for all pretense and purpose it will not change during a session. The string is not getting trimmed in the conventional sense. The strncpy just copies at most