From 372cbfbbd417638b62089e38a7df092e0c87c3f9 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 19 Aug 2019 17:48:18 -0700 Subject: [PATCH] Searches are no longer case sensitive --- Debug/proto/subdir.mk | 2 +- Debug/src/subdir.mk | 2 +- Release/proto/subdir.mk | 2 +- Release/src/subdir.mk | 2 +- src/wofi.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Debug/proto/subdir.mk b/Debug/proto/subdir.mk index b7bea2c..4c1177f 100644 --- a/Debug/proto/subdir.mk +++ b/Debug/proto/subdir.mk @@ -20,7 +20,7 @@ C_DEPS += \ proto/%.o: ../proto/%.c @echo 'Building file: $<' @echo 'Invoking: GCC C Compiler' - gcc -I../inc -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -fsanitize=address `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + gcc -D_GNU_SOURCE -I../inc -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -fsanitize=address `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' diff --git a/Debug/src/subdir.mk b/Debug/src/subdir.mk index a795b73..d6d8325 100644 --- a/Debug/src/subdir.mk +++ b/Debug/src/subdir.mk @@ -29,7 +29,7 @@ C_DEPS += \ src/%.o: ../src/%.c @echo 'Building file: $<' @echo 'Invoking: GCC C Compiler' - gcc -I../inc -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -fsanitize=address `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + gcc -D_GNU_SOURCE -I../inc -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -fsanitize=address `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' diff --git a/Release/proto/subdir.mk b/Release/proto/subdir.mk index 3668e81..117f385 100644 --- a/Release/proto/subdir.mk +++ b/Release/proto/subdir.mk @@ -20,7 +20,7 @@ C_DEPS += \ proto/%.o: ../proto/%.c @echo 'Building file: $<' @echo 'Invoking: GCC C Compiler' - gcc -I../inc -O3 -Wall -Wextra -c -fmessage-length=0 `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + gcc -D_GNU_SOURCE -I../inc -O3 -Wall -Wextra -c -fmessage-length=0 `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' diff --git a/Release/src/subdir.mk b/Release/src/subdir.mk index c8e1c83..2fef766 100644 --- a/Release/src/subdir.mk +++ b/Release/src/subdir.mk @@ -29,7 +29,7 @@ C_DEPS += \ src/%.o: ../src/%.c @echo 'Building file: $<' @echo 'Invoking: GCC C Compiler' - gcc -I../inc -O3 -Wall -Wextra -c -fmessage-length=0 `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + gcc -D_GNU_SOURCE -I../inc -O3 -Wall -Wextra -c -fmessage-length=0 `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' diff --git a/src/wofi.c b/src/wofi.c index c5d8a27..54c1c7f 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -360,7 +360,7 @@ static gboolean do_filter(GtkListBoxRow* row, gpointer data) { if(filter == NULL || strcmp(filter, "") == 0) { return TRUE; } - if(strstr(text, filter) != NULL) { + if(strcasestr(text, filter) != NULL) { return TRUE; } return FALSE;