diff options
author | Andrey Hristov <andrey@php.net> | 2008-01-08 13:13:39 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-01-08 13:13:39 +0000 |
commit | 5a4f6015bbde756d1e87a153d715f8594b580db9 (patch) | |
tree | 6e93c273d05e9567c42f0d337574792e19fddbca /ext/mysqlnd/mysqlnd_wireprotocol.c | |
parent | 96c63a378e2889b1c1c92e1c0545a7565893c333 (diff) | |
download | php-git-5a4f6015bbde756d1e87a153d715f8594b580db9.tar.gz |
strncpy->strlcpy
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index 8c119a769f..5f1ee54b88 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -698,7 +698,7 @@ size_t php_mysqlnd_auth_write(void *_packet, MYSQLND *conn TSRMLS_DC) p+= 23; len= strlen(packet->user); - strncpy(p, packet->user, len); + memcpy(p, packet->user, len); p+= len; *p++ = '\0'; |