From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRvMk-0007oW-Sl for qemu-devel@nongnu.org; Tue, 27 Jan 2009 16:21:02 -0500 Received: from [199.232.76.173] (port=58089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRvMk-0007oB-8L for qemu-devel@nongnu.org; Tue, 27 Jan 2009 16:21:02 -0500 Received: from imp02.mtu.ru ([62.5.255.19]:52665) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRvMj-0004Ln-M6 for qemu-devel@nongnu.org; Tue, 27 Jan 2009 16:21:02 -0500 Received: from ss27-so03.mtu.ru (localhost [127.0.0.1]) by ss27-so03.mtu.ru (Postfix) with ESMTP id 6E441284623 for ; Wed, 28 Jan 2009 00:20:59 +0300 (MSK) Received: from imp01.mtu.ru (alt-proxy-1.mtu.ru [62.5.255.74]) by ss27-so03.mtu.ru (Postfix) with ESMTP id 65DAD284614 for ; Wed, 28 Jan 2009 00:20:59 +0300 (MSK) From: Pavel Vasilyev Subject: Re: [Qemu-devel] Re: [PATCH] Replace strcmp() by strncmp() Date: Wed, 28 Jan 2009 00:20:50 +0300 References: <200901270313.26331.pavel@pavlinux.ru> <200901270334.14108.pavel@pavlinux.ru> <497ED3D7.7000703@siemens.com> In-Reply-To: <497ED3D7.7000703@siemens.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart26238747.I2v8LevqKM"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200901280020.59006.pavel@pavlinux.ru> Reply-To: pavel@pavlinux.ru, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --nextPart26238747.I2v8LevqKM Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 27 January 2009 12:28:55 Jan Kiszka wrote: > Pavel Vasilyev wrote: > > Possible SIGSEGV > > I would suggest studying some strncmp implementation and also thinking > about the case that 'device' is, say, "nics"... 1. "nics" is other option=20 2. strncmp() conforming with next standarts: SVID 3, POSIX, BSD 4.3, ISO 9= 899 =20 3. For case insensitivity - use strncasecmp(), For OSes where there is no t= his =20 function, it is possible to use macro. --nextPart26238747.I2v8LevqKM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBJf3q6MFsE+gWr1VkRAnZ9AJ9siHaLW4KXDZLWnsvFsX/N7kGY/gCfYySL 2EXRD5R430r79puV9PNkk3A= =vDHy -----END PGP SIGNATURE----- --nextPart26238747.I2v8LevqKM--