qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Vasilyev <pavel@pavlinux.ru>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] Replace strcmp() by strncmp()
Date: Wed, 28 Jan 2009 00:20:50 +0300	[thread overview]
Message-ID: <200901280020.59006.pavel@pavlinux.ru> (raw)
In-Reply-To: <497ED3D7.7000703@siemens.com>

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

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 
2. strncmp() conforming with next standarts:  SVID 3, POSIX, BSD 4.3, ISO 9899   
3. For case insensitivity - use strncasecmp(), For OSes where there is no this   
function, it is possible to use macro.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  parent reply	other threads:[~2009-01-27 21:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27  0:13 [Qemu-devel] [PATCH] Random MAC address option Pavel Vasilyev
2009-01-27  0:34 ` [Qemu-devel] [PATCH] Replace strcmp() by strncmp() Pavel Vasilyev
2009-01-27  9:28   ` [Qemu-devel] " Jan Kiszka
2009-01-27 20:49     ` Pavel Vasilyev
2009-01-27 21:20     ` Pavel Vasilyev [this message]
2009-01-27  0:57 ` [Qemu-devel] [PATCH] Random MAC address option malc
2009-01-27 10:05 ` Kevin Wolf
2009-01-27 10:15 ` Riku Voipio
2009-01-27 10:25   ` Daniel P. Berrange
2009-01-27 14:28     ` Ian Jackson
2009-01-27 20:51   ` Pavel Vasilyev
2009-01-27 16:33 ` Paul Brook
2009-01-27 16:47   ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901280020.59006.pavel@pavlinux.ru \
    --to=pavel@pavlinux.ru \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).