From 1aa82deceadf70f9f2f43be7ee3544511ccc7e8d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 17 Aug 2007 22:31:51 +0000 Subject: - Robson Braga Araujo filed bug report #1776232 (http://curl.haxx.se/bug/view.cgi?id=1776232) about libcurl calling Curl_client_write(), passing on a const string that the caller may not modify and yet it does (on some platforms). --- lib/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ftp.c b/lib/ftp.c index 9301b55b3..775c75f95 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -2144,8 +2144,8 @@ static CURLcode ftp_state_rest_resp(struct connectdata *conn, default: #ifdef CURL_FTP_HTTPSTYLE_HEAD if (ftpcode == 350) { - result = Curl_client_write(conn, CLIENTWRITE_BOTH, - (char *)"Accept-ranges: bytes\r\n", 0); + char buffer[24]= { "Accept-ranges: bytes\r\n" }; + result = Curl_client_write(conn, CLIENTWRITE_BOTH, buffer, 0); if(result) return result; } -- cgit v1.2.3