diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-03 19:48:15 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-03 19:48:15 +0300 |
commit | 42b81716ece887b0011b1e40b0101ad37598997e (patch) | |
tree | 62d7512875ea0e2adb47d524d23628d86e83b4d4 /test | |
parent | d62fb36650acfd0863c32a78b0941a4c0d0e58b1 (diff) | |
download | rspamd-42b81716ece887b0011b1e40b0101ad37598997e.tar.gz rspamd-42b81716ece887b0011b1e40b0101ad37598997e.zip |
* Remove strlcpy code and replace it with glib alternative
* Polish code and remove bugs found
Diffstat (limited to 'test')
-rw-r--r-- | test/.depends | 3 | ||||
-rw-r--r-- | test/rspamd_memcached_test.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/test/.depends b/test/.depends index 984f4699c..6312d8dd2 100644 --- a/test/.depends +++ b/test/.depends @@ -1,6 +1,3 @@ -#if HAVE_STRLCPY_H -../src/strlcpy.c -#endif ../src/mem_pool.c ../src/url.c ../src/util.c diff --git a/test/rspamd_memcached_test.c b/test/rspamd_memcached_test.c index 467641897..6ce983282 100644 --- a/test/rspamd_memcached_test.c +++ b/test/rspamd_memcached_test.c @@ -74,7 +74,7 @@ rspamd_memcached_test_func () ctx->timeout.tv_usec = 0; ctx->sock = -1; ctx->options = MEMC_OPT_DEBUG; - strlcpy (param->key, buf, sizeof (param->key)); + g_strlcpy (param->key, buf, sizeof (param->key)); param->buf = buf; param->bufsize = strlen (buf); ctx->param = param; |