X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ffunction.c;h=9c18645d19422e90b21f1023cd1e037ccd2b4a56;hb=797030634aad32b958277944a9b2d687ea148e97;hp=a1c817a4a3c08bcd8475797281492d3e2ef67cb8;hpb=6dab216a486ce3c5cb9a041f91bedb88afc8515a;p=m6w6%2Flibmemcached diff --git a/tests/function.c b/tests/function.c index a1c817a4..9c18645d 100644 --- a/tests/function.c +++ b/tests/function.c @@ -1700,8 +1700,7 @@ uint8_t user_supplied_bug13(memcached_st *memc) Test values of many different sizes Bug found where command total one more than MEMCACHED_MAX_BUFFER set key34567890 0 0 8169 \r\n - is sent - followed by buffer of size 8169, followed by 8169 + is sent followed by buffer of size 8169, followed by 8169 */ uint8_t user_supplied_bug14(memcached_st *memc) { @@ -1723,7 +1722,7 @@ uint8_t user_supplied_bug14(memcached_st *memc) for (x= 0; x < value_length; x++) value[x] = (char) (x % 127); - for (current_length = 0; current_length < value_length; current_length++) + for (current_length= 1; current_length < value_length; current_length++) { rc= memcached_set(memc, key, strlen(key), value, current_length,