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

Fix: CMake variables and segfault on vdecmd #60

Merged
merged 2 commits into from
Dec 25, 2024

Conversation

samuelemusiani
Copy link
Contributor

After the CMake porting (674c8ec) the vdecmd was broken. The problem was that for CMake the variablesCMAKE_INSTALL_SYSCONFDIR and CMAKE_INSTALL_LOCALSTATEDIR do not start with a /: https://cmake.org/cmake/help/latest/command/install.html.

I added the /.

I have also added the empty element at the end of the array of the options for getopt in order to avoid segfaults on invalid arguments. From the docs of getopt:

   The last element of the array has to be filled with zeros.

@danielinux
Copy link
Member

Merged, thanks!

@danielinux danielinux merged commit 306a519 into virtualsquare:master Dec 25, 2024
2 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