From 442846f4c022f430daeef064e16710efec2b6cfc Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Wed, 5 Jan 2011 12:17:09 +0000 Subject: [PATCH] *** empty log message *** --- mbuni/extras/pgsql-queue/mms_pgsql_queue.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mbuni/extras/pgsql-queue/mms_pgsql_queue.c b/mbuni/extras/pgsql-queue/mms_pgsql_queue.c index c8fca01..fadd9a1 100644 --- a/mbuni/extras/pgsql-queue/mms_pgsql_queue.c +++ b/mbuni/extras/pgsql-queue/mms_pgsql_queue.c @@ -66,15 +66,16 @@ static int pgq_init_module(Octstr *conninfo, char *xtopdir, int max_connections) /* Now look for flags */ if ((i = octstr_search_char(xcinfo, ';', 0)) > 0) { - Octstr *x = octstr_copy(xcinfo, i+1, octstr_len(xcinfo)); + Octstr *x = octstr_copy(xcinfo, 0, i); - octstr_delete(xcinfo, i, octstr_len(xcinfo)); + octstr_delete(xcinfo, 0, i+1); if (octstr_case_search(x, octstr_imm("internal"), 0) >= 0) external_storage = 0; if (octstr_case_search(x, octstr_imm("no-archive"), 0) >= 0) archive_msgs = 0; + octstr_strip_blanks(xcinfo); octstr_destroy(x); } max_conns = max_connections + 1;