From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 6 Aug 2009 10:37:39 +0400 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20090806063739.GB3837@altlinux.org> Mail-Followup-To: devel@lists.altlinux.org References: <4A7A7600.9010903@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline In-Reply-To: <4A7A7600.9010903@altlinux.org> Subject: Re: [devel] =?koi8-r?b?zsUg08/CydLBxdTT0SB0b3BwbGVyLiDw0s/b1SDQz83P?= =?koi8-r?b?3cku?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2009 06:37:51 -0000 Archived-At: List-Archive: List-Post: --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 06, 2009 at 10:19:44AM +0400, "=FB=C9=DB=CB=CF=D7 =E5.=F7." wro= te: > =F7=D3=C5=CD =D0=D2=C9=D7=C5=D4. >=20 > =E2=D9=CC =D7 =CF=D4=D0=D5=D3=CB=C5. =F0=CF=CB=C1 =CF=D4=C4=D9=C8=C1=CC, = =D0=C5=D2=C5=D3=D4=C1=CC=20 > =D0=C1=CB=C5=D4=C9=CB =CD=CF=CA =D3=CF=C2=C9=D2=C1=D4=D8=D3=D1 (toppler). > =F0=CF=D0=D9=D4=C1=CC=D3=D1 =D0=CF=DE=C9=CE=C9=D4=D8 - =CE=C5 =D0=CF=CC= =D5=DE=C1=C5=D4=D3=D1. >=20 > leveledit.o leveledit.cc > leveledit.cc: In function 'void le_edit()': > leveledit.cc:519: warning: deprecated conversion from string constant to= =20 > 'char*' > In file included from /usr/include/stdio.h:912, > from decl.h:24, > from leveledit.cc:21: > In function 'int snprintf(char*, size_t, const char*, ...)', > inlined from 'void le_showkeyhelp(int, int)' at leveledit.cc:439, > inlined from 'void le_edit()' at leveledit.cc:935: > /usr/include/bits/stdio2.h:66: error: call to int=20 > __builtin___snprintf_chk(char*, unsigned int, int, unsigned int, const=20 > char*, ...) will always overflow destination buffer leveledit.cc: 411 static void le_showkeyhelp(int row, int col) { 412 int k; 413 int maxkeylen =3D 0; 414 textsystem *ts =3D new textsystem(_("Editor Key Help"), editor_ba= ckground_menu_proc); 415 char tabbuf1[6], tabbuf2[6]; 416 =20 417 if (!ts) return; 418 =20 419 for (k =3D 0; k < SIZE(_ed_keys); k++) { 420 char knam[256]; 421 snprintf(knam, 256, "%s%s", keymod2str(_ed_keys[k].mod), SDL_= GetKeyName(_ed_keys[k].key)); 422 int l =3D scr_textlength(knam); 423 =20 424 if (l > maxkeylen) maxkeylen =3D l; 425 } 426 =20 427 snprintf(tabbuf1, 6, "%3i", maxkeylen + FONTWID); 428 if (tabbuf1[0] < '0') tabbuf1[0] =3D '0'; 429 if (tabbuf1[1] < '0') tabbuf1[1] =3D '0'; 430 if (tabbuf1[2] < '0') tabbuf1[2] =3D '0'; 431 =20 432 for (k =3D 0; k < SIZE(_ed_keys); k++) { 433 char buf[256]; 434 char tmpb[256]; 435 char knam[256]; 436 =20 437 snprintf(knam, 256, "%s%s", keymod2str(_ed_keys[k].mod), SDL_= GetKeyName(_ed_keys[k].key)); 438 =20 439 snprintf(tabbuf2, 256, "%3i", maxkeylen - scr_textlength(knam= )); 440 if (tabbuf2[0] < '0') tabbuf2[0] =3D '0'; 441 if (tabbuf2[1] < '0') tabbuf2[1] =3D '0'; 442 if (tabbuf2[2] < '0') tabbuf2[2] =3D '0'; =F7 =D3=D4=D2=CF=CB=C5 439 =D5 sprintf =CE=C5=D0=D2=C1=D7=C9=CC=D8=CE=D9=CA= =C1=D2=C7=D5=CD=C5=CE=D4 "=D2=C1=DA=CD=C5=D2 =C2=D5=C6=C5=D2=C1": =C2=D5=C6=C5=D2 =CF=C2=DF=D1=D7=CC=C5=CE =CB=C1=CB tabbuf2[6] (=D3=D4=D2=CF= =CB=C1 415), =C1 =D0=C5=DE=C1=D4=C1=C0=D4 =D7 =CE=C5=C7=CF =CB=C1=CB =C2=D5=C4=D4=CF =CF=CE 256 =C2=C1=CA=D4=CF=D7. --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkp6ejMACgkQfBKgtDjnu0aBFACfexkxfvQYl3Y6lazRyqzosqr9 11kAoNK1qyNP3MtdK2j/zXA/BZKmRxZl =USqs -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--