diff options
Diffstat (limited to 'test/rspamd_memcached_test.c')
-rw-r--r-- | test/rspamd_memcached_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rspamd_memcached_test.c b/test/rspamd_memcached_test.c index 1993c756e..60ae1d3eb 100644 --- a/test/rspamd_memcached_test.c +++ b/test/rspamd_memcached_test.c @@ -33,7 +33,7 @@ memcached_callback (memcached_ctx_t *ctx, memc_error_t error, void *data) break; case CMD_READ: g_assert (error == OK); - g_assert (!strcmp(ctx->param->buf, buf)); + g_assert (!memcmp(ctx->param->buf, buf, ctx->param->bufsize)); msg_debug ("Read ok"); memc_close_ctx (ctx); tv.tv_sec = 0; |