Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove strdup calls from at_c #516

Closed
XavierChanth opened this issue Jan 14, 2025 · 1 comment
Closed

Remove strdup calls from at_c #516

XavierChanth opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@XavierChanth
Copy link
Member

XavierChanth commented Jan 14, 2025

  • strdup is an extension in C99
  • Instead use malloc, strlen, & memcpy to achieve the exact same thing

For portability, avoid using the extension.

@XavierChanth
Copy link
Member Author

Marked as 0 SP as the remaining work will be completed via other changes, and the remaining places it exists is currently not an issue for current build targets (but may be for new ones)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants