[Top][All Lists]

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

Re: [Qemu-devel] [PATCH v2 04/11] curl: fix curl_open

From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 04/11] curl: fix curl_open
Date: Tue, 14 May 2013 10:13:31 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, May 14, 2013 at 10:26:23AM +0800, Fam Zheng wrote:
> +    if (!strncmp(s->url, "http://";, strlen("http://";)) && !s->accept_range) {
> +        strncpy(state->errmsg, "Server not supporting range.", 

Please use pstrcpy(), it always NUL-terminates.  strncpy(3) does not
when the buffer size is reached.

Also, what happens when the URL is given in uppercase?

reply via email to

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