File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ static const char* getHyprland(FFstrbuf* result)
31
31
FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate ();
32
32
33
33
FF_DEBUG ("Checking for " FASTFETCH_TARGET_DIR_USR "/include/hyprland/src/version.h" " file" );
34
- if (ffReadFileBuffer (FASTFETCH_TARGET_DIR_USR "/include/hyprland/src/version.h" , & buffer ))
34
+ if (ffReadFileBuffer (FASTFETCH_TARGET_DIR_USR "/include/hyprland/src/version.h" , result ))
35
35
{
36
36
FF_DEBUG ("Found version.h file, extracting version" );
37
- if (ffStrbufSubstrAfterFirstS (& buffer , "\n#define GIT_TAG " ))
37
+ if (ffStrbufSubstrAfterFirstS (result , "\n#define GIT_TAG " ))
38
38
{
39
- ffStrbufSubstrAfterFirstC (& buffer , '"' );
40
- ffStrbufSubstrBeforeFirstC (& buffer , '"' );
41
- FF_DEBUG ("Extracted version from version.h: %s" , buffer . chars );
39
+ ffStrbufSubstrAfterFirstC (result , '"' );
40
+ ffStrbufSubstrBeforeFirstC (result , '"' );
41
+ FF_DEBUG ("Extracted version from version.h: %s" , result -> chars );
42
42
return NULL ;
43
43
}
44
44
FF_DEBUG ("Failed to extract version from version.h" );
45
- ffStrbufClear (& buffer );
45
+ ffStrbufClear (result );
46
46
}
47
47
else
48
48
{
You can’t perform that action at this time.
0 commit comments