lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev gettext() question


From: dickey
Subject: Re: lynx-dev gettext() question
Date: Mon, 16 Nov 1998 14:58:29 -0500 (EST)

> On Sat, 14 Nov 1998 09:06:04 +0900 (JST) Nelson Henry Eric 
> <address@hidden> wrote: 
>  
> >> But some bug (example buffer overflow) can arise only whith some 
> >> translation 
> >> file... 
>  
> >Can you give us more information on this?  I worry because it is often 
> >impossible to give a clear translation within the same length as the 
> >English message. 
>  
> As an example: 
>  
> char tmp[100]; 
> sprintf(tmp, "%s",gettext("English Message little then 99 car.")); 

I'm aware of these (and would like to eliminate most of the fixed-buffer
formatting)

> ... 
>  
> If the translated text is greater then 99 car. -> overflow 
> So it's OK whith english message and can core dump with other. 
> Claude 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

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