diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-14 21:01:57 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-28 22:26:22 +0200 |
commit | 6fcc368ae18311750a35980f4dafedd0c5e9c7bd (patch) | |
tree | f31dc793904364c4062c96f22fbea9ea90e3176e | |
parent | 8ea3ab155fd2d596a6c509efe24c717062c6c71c (diff) | |
download | slirp-6fcc368ae18311750a35980f4dafedd0c5e9c7bd.zip slirp-6fcc368ae18311750a35980f4dafedd0c5e9c7bd.tar.gz slirp-6fcc368ae18311750a35980f4dafedd0c5e9c7bd.tar.bz2 |
win32: replace strcasecmp with g_ascii_strcasecmp
-rw-r--r-- | src/tftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -333,7 +333,7 @@ static void tftp_handle_rrq(Slirp *slirp, struct sockaddr_storage *srcsas, return; } - if (strcasecmp(&tp->x.tp_buf[k], "octet") != 0) { + if (g_ascii_strcasecmp(&tp->x.tp_buf[k], "octet") != 0) { tftp_send_error(spt, 4, "Unsupported transfer mode", tp); return; } @@ -377,7 +377,7 @@ static void tftp_handle_rrq(Slirp *slirp, struct sockaddr_storage *srcsas, value = &tp->x.tp_buf[k]; k += strlen(value) + 1; - if (strcasecmp(key, "tsize") == 0) { + if (g_ascii_strcasecmp(key, "tsize") == 0) { int tsize = atoi(value); struct stat stat_p; @@ -393,7 +393,7 @@ static void tftp_handle_rrq(Slirp *slirp, struct sockaddr_storage *srcsas, option_name[nb_options] = "tsize"; option_value[nb_options] = tsize; nb_options++; - } else if (strcasecmp(key, "blksize") == 0) { + } else if (g_ascii_strcasecmp(key, "blksize") == 0) { int blksize = atoi(value); /* Accept blksize up to our maximum size */ |