]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftp: make the 'ftpauth' a more normal 'char *'-array
authorDaniel Stenberg <daniel@haxx.se>
Tue, 7 Mar 2023 14:19:09 +0000 (15:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Mar 2023 14:32:16 +0000 (15:32 +0100)
Closes #10703

lib/ftp.c

index 163262f1afbe3d7b830ee5a32702e347ee9bb7cd..60f4b427ad8d03f3c5dbce4275dff9bf68adaa2e 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2675,7 +2675,7 @@ static CURLcode ftp_statemachine(struct Curl_easy *data,
   int ftpcode;
   struct ftp_conn *ftpc = &conn->proto.ftpc;
   struct pingpong *pp = &ftpc->pp;
-  static const char ftpauth[][4]  = { "SSL", "TLS" };
+  static const char * const ftpauth[] = { "SSL", "TLS" };
   size_t nread = 0;
 
   if(pp->sendleft)