logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pecl /memcache memcache.c: msg#00107

Subject: cvs: pecl /memcache memcache.c
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;
 




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>