Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appending the copied env string with NULL character before trimming. #118

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

Gautham-coder
Copy link
Contributor

In module 'env_comp()', when copying the environment variable string, the trimRight() function is being called immediately after copying the bytes equivalent to the length of the string.

The trimRight() function removes the spaces if any and then appends the NULL character, but this doesn't happen with strings that have no spaces in them, hence we add the NULL character before we send the string to be trimmed.

Related to PR: #115

@1000TurquoisePogs 1000TurquoisePogs changed the base branch from v2.x/staging to test/no-zwe June 18, 2024 17:27
@1000TurquoisePogs 1000TurquoisePogs merged commit 202f73a into test/no-zwe Jun 18, 2024
4 of 5 checks passed
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.

2 participants