[Erp5-report] r38084 luke - /erp5/trunk/patches/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 1 05:33:45 CEST 2010


Author: luke
Date: Wed Sep  1 05:33:43 2010
New Revision: 38084

URL: http://svn.erp5.org?rev=38084&view=rev
Log:
 - another patch for memcached

Added:
    erp5/trunk/patches/memcached-1.4-fix-array-subscript-is-above-array-bounds.patch

Added: erp5/trunk/patches/memcached-1.4-fix-array-subscript-is-above-array-bounds.patch
URL: http://svn.erp5.org/erp5/trunk/patches/memcached-1.4-fix-array-subscript-is-above-array-bounds.patch?rev=38084&view=auto
==============================================================================
--- erp5/trunk/patches/memcached-1.4-fix-array-subscript-is-above-array-bounds.patch (added)
+++ erp5/trunk/patches/memcached-1.4-fix-array-subscript-is-above-array-bounds.patch [utf8] Wed Sep  1 05:33:43 2010
@@ -0,0 +1,25 @@
+Took originally from OpenSuse spec. Needed on opensuse to avoid "error: array subscript is above array bounds"
+--- memcached-orig/memcached.c
++++ memcached-new/memcached.c	2010/05/06 11:40:56
+@@ -2335,15 +2335,18 @@
+ inline static void process_stats_detail(conn *c, const char *command) {
+     assert(c != NULL);
+ 
+-    if (strcmp(command, "on") == 0) {
++    char on[] = "on";
++    char off[] = "off";
++    char dump[] = "dump";
++    if (strcmp(command, on) == 0) {
+         settings.detail_enabled = 1;
+         out_string(c, "OK");
+     }
+-    else if (strcmp(command, "off") == 0) {
++    else if (strcmp(command, off) == 0) {
+         settings.detail_enabled = 0;
+         out_string(c, "OK");
+     }
+-    else if (strcmp(command, "dump") == 0) {
++    else if (strcmp(command, dump) == 0) {
+         int len;
+         char *stats = stats_prefix_dump(&len);
+         write_and_free(c, stats, len);




More information about the Erp5-report mailing list