Fix issue with memcached_st structure being a different size based on
[awesomized/libmemcached] / libmemcached / quit.c
index 35d434bc6b7886a4634edbec083f5872699278d7..592373f60a8e5527db83c775e959d4c19961fe95 100644 (file)
@@ -30,7 +30,7 @@ void memcached_quit_server(memcached_server_st *ptr, bool io_death)
       }
       else
       {
-        rc= memcached_do(ptr, "quit\r\n", sizeof("quit\r\n"), true);
+        rc= memcached_do(ptr, "quit\r\n", strlen("quit\r\n"), true);
       }
 
       WATCHPOINT_ASSERT(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_FETCH_NOTFINISHED);