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)
3131 FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate ();
3232
3333 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 ))
3535 {
3636 FF_DEBUG ("Found version.h file, extracting version" );
37- if (ffStrbufSubstrAfterFirstS (& buffer , "\n#define GIT_TAG " ))
37+ if (ffStrbufSubstrAfterFirstS (result , "\n#define GIT_TAG " ))
3838 {
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 );
4242 return NULL ;
4343 }
4444 FF_DEBUG ("Failed to extract version from version.h" );
45- ffStrbufClear (& buffer );
45+ ffStrbufClear (result );
4646 }
4747 else
4848 {
You can’t perform that action at this time.
0 commit comments