[php-src] PR #17290: ext/pdo: Use memcpy instead of strlcpy for copying default error code
| From: | Girgias | Date: | Sun, 29 Dec 2024 02:42:10 +0000 |
| Subject: | [php-src] PR #17290: ext/pdo: Use memcpy instead of strlcpy for copying default error code | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30146@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17290
Author: Girgias
They have identical sizes, so there is no need for 'extra' safety.
See https://nrk.neocities.org/articles/not-a-fan-of-strlcpy
for a rationale against the usage of strlcpy