summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 83d948687..808ea24a8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2741,7 +2741,7 @@ static CURLcode ftp_statemachine(struct Curl_easy *data,
}
else if(ftpc->count3 < 1) {
ftpc->count3++;
- ftpc->count1 += ftpc->count2; /* get next attempt */
+ ftpc->count1 += (signed char)ftpc->count2; /* get next attempt */
result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s",
ftpauth[ftpc->count1]);
/* remain in this same state */