i < ((current_credits_page + 1) * CREDITS_PER_PAGE);
i++) {
if (filter == NULL ||
- strncmp(credits.credits[i].nickname, filter, filter_len) == 0) {
+ strncasecmp(credits.credits[i].nickname, filter, filter_len) == 0) {
if (format_euro(buffer, sizeof(buffer), credits.credits[i].credit) !=
buffer) {
cprintf("Error: Could not format credit %d\r\n",
static int8_t find_credit_idx(char *name) {
int8_t i;
for (i = 0; i < credits.num_items; ++i) {
- if (strncmp(name, credits.credits[i].nickname, NICKNAME_MAX_LEN + 1) == 0) {
+ if (strncasecmp(name, credits.credits[i].nickname, NICKNAME_MAX_LEN + 1) ==
+ 0) {
return i;
}
}
matches = 0;
uniquematch = NULL;
for (i = 0; i < credits.num_items; i++) {
- if (strncmp(nickname, credits.credits[i].nickname, strlen(nickname)) !=
- 0) {
+ if (strncasecmp(nickname, credits.credits[i].nickname,
+ strlen(nickname)) != 0) {
continue;
}
matches++;
cprintf("\r\nCompletion:\r\n");
matches = 0;
for (i = 0; i < credits.num_items; i++) {
- if (strncmp(nickname, credits.credits[i].nickname, len) != 0) {
+ if (strncasecmp(nickname, credits.credits[i].nickname, len) != 0) {
continue;
}
if (++matches == 5) {