Skip to content

Changed ffStrbufRemoveStringsA() iterator logic - #48

Merged
LinusDierheimer merged 1 commit into
fastfetch-cli:masterfrom
DarNCelsius:master
May 16, 2021
Merged

LinusDierheimer merged 1 commit into
fastfetch-cli:masterfrom
DarNCelsius:master

Conversation

@DarNCelsius

Copy link
Copy Markdown
Contributor

Fixes #47

@LinusDierheimer

Copy link
Copy Markdown
Collaborator

I don't know why this fixes it but if it does i am happy.

@LinusDierheimer
LinusDierheimer merged commit 8af1cde into fastfetch-cli:master May 16, 2021
@DarNCelsius

DarNCelsius commented May 16, 2021 •

Copy link
Copy Markdown
Contributor Author

It changes the outer loop to iterate through the number of elements to remove. Seemed backwards before.
I'm still not experienced enough to fully understand the inner portions and strbufRemoveTest() though.

remstrs5

@DarNCelsius

Copy link
Copy Markdown
Contributor Author

Is it still working okay in your end?

@LinusDierheimer

LinusDierheimer commented May 16, 2021 •

Copy link
Copy Markdown
Collaborator

It is.

@DarNCelsius

DarNCelsius commented May 16, 2021 •

Copy link
Copy Markdown
Contributor Author

Tested on Void with my i7-3930K, and the output is the same as with r254.

Some printf output:

Void
String before: "Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz" Len: 40
String after: "Intel Core i7-3930K @ 3.20GHz" Len: 29

Manjaro
String before: "AMD Ryzen 7 3800X 8-Core Processor" Len: 34
String after: "AMD Ryzen 7 3800X" Len: 17

This is immediately before and after the removestringsa (@ 3.20GHz is also removed). Seems ok?

@UnixUserDev UnixUserDev mentioned this pull request Oct 16, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ffStrbufRemoveStrings() functions are order dependent

2 participants