We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921e4a6 commit 716522eCopy full SHA for 716522e
CMakeLists.txt
@@ -161,6 +161,7 @@ add_library(libfastfetch OBJECT
161
src/detection/vulkan.c
162
src/detection/media.c
163
src/detection/datetime.c
164
+ src/detection/temps.c
165
src/detection/displayserver/displayServer.c
166
src/detection/displayserver/wayland.c
167
src/detection/displayserver/xcb.c
src/detection/temps.c
@@ -7,10 +7,7 @@
7
static bool isTempFile(const char* name)
8
{
9
return
10
- name[0] == 't' &&
11
- name[1] == 'e' &&
12
- name[2] == 'm' &&
13
- name[3] == 'p' &&
+ strncmp(name, "temp", 4) == 0 &&
14
name[4] >= '0' &&
15
name[4] <= '9' &&
16
strncmp(name + 5, "_input", 6) == 0;
0 commit comments