ftp: Mark a const buffer as const

This commit is contained in:
Dan Fandrich 2024-03-01 01:07:02 -08:00
parent dff74ae8bb
commit ddb87160f5

View File

@ -272,7 +272,7 @@ static CURLcode ftp_cw_lc_write(struct Curl_easy *data,
struct Curl_cwriter *writer, int type,
const char *buf, size_t blen)
{
static char nl = '\n';
static const char nl = '\n';
struct ftp_cw_lc_ctx *ctx = (struct ftp_cw_lc_ctx *)writer;
if(!(type & CLIENTWRITE_BODY) ||