mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:23:33 +03:00
fixup use memcmp instead
This commit is contained in:
parent
407eb0f58e
commit
611bf71902
1 changed files with 1 additions and 1 deletions
|
|
@ -2045,7 +2045,7 @@ static CURLcode http_target(struct Curl_easy *data,
|
|||
/* when doing ftp, append ;type=<a|i> if not present */
|
||||
size_t len = strlen(path);
|
||||
bool type_present = FALSE;
|
||||
if((len >= 7) && !strncmp(&path[len - 7], ";type=", 6)) {
|
||||
if((len >= 7) && !memcmp(&path[len - 7], ";type=", 6)) {
|
||||
switch(Curl_raw_toupper(path[len - 1])) {
|
||||
case 'A':
|
||||
case 'D':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue