From: Georg Richter Date: Sat, 7 Jun 2003 16:15:22 +0000 (+0000) Subject: fixed mysql bug #564 (http://bugs.mysql.com/bug.php?id=564) X-Git-Tag: RELEASE_1_0_2~367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a2968a75fd710bf91b12d4e9c10b4932e1b5463;p=php fixed mysql bug #564 (http://bugs.mysql.com/bug.php?id=564) --- 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) {