diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-01-15 02:40:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-01-15 02:40:43 +0000 |
commit | 6a4f4fdc19029ec92f9b7c0ea4eb62e973ea2ac4 (patch) | |
tree | e06662cadb393c08571529a44b4af18155317b2a /epan/dissectors/packet-bootp.c | |
parent | 8c6b59cf9c6dec37f58a5e4c8450a0cba2108456 (diff) |
strcasecmp()'s behavior is locale-dependent, and thus unpredictable (and
possibly undesirable - in a Turkish locale, for example, "i" and "I" are
not equal); g_ascii_strcasecmp()'s behavior is not locale-dependent (and
treats "i" and "I" as equal even in a Turkish locale; the strings being
compared against are English, not Turkish, so treating "i" and "I" as
equal is a feature, not a bug).
svn path=/trunk/; revision=27236
Diffstat (limited to 'epan/dissectors/packet-bootp.c')
-rw-r--r-- | epan/dissectors/packet-bootp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c index dbebca1976..14773d062b 100644 --- a/epan/dissectors/packet-bootp.c +++ b/epan/dissectors/packet-bootp.c @@ -3857,13 +3857,13 @@ bootp_init_protocol(void) bootp_opt[ii].text = optiondetail[1]; type = optiondetail[2]; /* A string to be converted to an ftype enum */ /* XXX This if statement could be extended to allow for additinonal types */ - if (strcasecmp(type,"string") == 0) + if (g_ascii_strcasecmp(type,"string") == 0) { bootp_opt[ii].ftype = string; - } else if (strcasecmp(type,"ipv4") == 0) + } else if (g_ascii_strcasecmp(type,"ipv4") == 0) { bootp_opt[ii].ftype = ipv4; - } else if (strcasecmp(type,"bytes") == 0) + } else if (g_ascii_strcasecmp(type,"bytes") == 0) { bootp_opt[ii].ftype = bytes; } else |