mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
6ef58da59e
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()`