Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext/mysqlnd: Refactor usage of strlcpy() (#17185)
The two calls that MySQLnd does to this handler all pass a buffer the same size as the error_msg field Thus, we know that we can just memcpy the error message into the buffer. See https://nrk.neocities.org/articles/not-a-fan-of-strlcpy for a rationale against the usage of `strlcpy()`
- Loading branch information