mirror of https://github.com/sysown/proxysql
- Use strlen(buff) for actual path length instead of bufsize (_NSGetExecutablePath does not modify bufsize on success) - Add explicit null-termination after strncpy for safety - Pass sizeof(buff) instead of sizeof(buff)-1 to _NSGetExecutablePath Addresses review feedback from gemini-code-assist.pull/5354/head
parent
e3bdd3c07d
commit
c45fabdb6d
Loading…
Reference in new issue