qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH] Replace strcmp() by strncmp()


From: Pavel Vasilyev
Subject: Re: [Qemu-devel] Re: [PATCH] Replace strcmp() by strncmp()
Date: Wed, 28 Jan 2009 00:20:50 +0300
User-agent: KMail/1.9.10

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: signature.asc
Description: This is a digitally signed message part.


reply via email to

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