summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql/libmysql.c
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2003-06-07 16:15:22 +0000
committerGeorg Richter <georg@php.net>2003-06-07 16:15:22 +0000
commit0a2968a75fd710bf91b12d4e9c10b4932e1b5463 (patch)
tree09fe743439e17e2cf8402b2e1f7bbcdf48e45cde /ext/mysql/libmysql/libmysql.c
parentc191b4343b610dceb9e6bff8ca7a8326362cc85f (diff)
downloadphp-git-0a2968a75fd710bf91b12d4e9c10b4932e1b5463.tar.gz
fixed mysql bug #564 (http://bugs.mysql.com/bug.php?id=564)
Diffstat (limited to 'ext/mysql/libmysql/libmysql.c')
-rw-r--r--ext/mysql/libmysql/libmysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/libmysql/libmysql.c b/ext/mysql/libmysql/libmysql.c
index 05558cf3ee..433de0380e 100644
--- a/ext/mysql/libmysql/libmysql.c
+++ b/ext/mysql/libmysql/libmysql.c
@@ -1240,7 +1240,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
net->vio = vio_new(sock, VIO_TYPE_SOCKET, TRUE);
bzero((char*) &UNIXaddr,sizeof(UNIXaddr));
UNIXaddr.sun_family = AF_UNIX;
- strmov(UNIXaddr.sun_path, unix_socket);
+ strmake(UNIXaddr.sun_path, unix_socket, sizeof(UNIXaddr.sun_path) - 1);
if (connect2(sock,(struct sockaddr *) &UNIXaddr, sizeof(UNIXaddr),
mysql->options.connect_timeout) <0)
{