aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-05-14 21:01:57 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-05-28 22:26:22 +0200
commit6fcc368ae18311750a35980f4dafedd0c5e9c7bd (patch)
treef31dc793904364c4062c96f22fbea9ea90e3176e
parent8ea3ab155fd2d596a6c509efe24c717062c6c71c (diff)
downloadslirp-6fcc368ae18311750a35980f4dafedd0c5e9c7bd.zip
slirp-6fcc368ae18311750a35980f4dafedd0c5e9c7bd.tar.gz
slirp-6fcc368ae18311750a35980f4dafedd0c5e9c7bd.tar.bz2
win32: replace strcasecmp with g_ascii_strcasecmp
-rw-r--r--src/tftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tftp.c b/src/tftp.c
index a19c889..a109401 100644
--- a/src/tftp.c
+++ b/src/tftp.c
@@ -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 */