[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl /memcache memcache.c
From: "Antony Dovgal" <tony2001 () php ! net>
Date: 2006-12-28 20:37:24
Message-ID: cvstony20011167338244 () cvsserver
[Download RAW message or body]
tony2001 Thu Dec 28 20:37:24 2006 UTC
Modified files:
/pecl/memcache memcache.c
Log:
use memcpy()
http://cvs.php.net/viewvc.cgi/pecl/memcache/memcache.c?r1=1.70&r2=1.71&diff_format=u
Index: pecl/memcache/memcache.c
diff -u pecl/memcache/memcache.c:1.70 pecl/memcache/memcache.c:1.71
--- pecl/memcache/memcache.c:1.70 Thu Nov 30 23:02:53 2006
+++ pecl/memcache/memcache.c Thu Dec 28 20:37:24 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: memcache.c,v 1.70 2006/11/30 23:02:53 tony2001 Exp $ */
+/* $Id: memcache.c,v 1.71 2006/12/28 20:37:24 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -285,7 +285,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "memcache support", "enabled");
php_info_print_table_row(2, "Active persistent connections", buf);
- php_info_print_table_row(2, "Revision", "$Revision: 1.70 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.71 $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -342,7 +342,7 @@
mmc->status = MMC_STATUS_DISCONNECTED;
memset(&(mmc->outbuf), 0, sizeof(smart_str));
- strncpy(mmc->host, host, host_len);
+ memcpy(mmc->host, host, host_len);
mmc->host[host_len] = '\0';
mmc->port = port;
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic