From: Art Cancro Date: Sat, 31 Jan 2009 05:09:04 +0000 (+0000) Subject: * The code which loads expire policies had been incompletely ported to strbuf, causin... X-Git-Tag: v7.86~1527 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=9a9b5a57041c36fdb6b6c3947b263634afa8ff58 * The code which loads expire policies had been incompletely ported to strbuf, causing the data to be lost. Fixed. --- diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index 709693e59..01824a592 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -175,8 +175,8 @@ void load_siteconfig(void) } serv_puts("GPEX mailboxes"); - serv_getln(buf, sizeof buf); - if (buf[0] == '2') { + StrBuf_ServGetln(Buf); + if (GetServerStatus(Buf, NULL) == 2) { StrBufCutLeft(Buf, 4); CfgToken = NewStrBuf(); @@ -187,6 +187,7 @@ void load_siteconfig(void) StrBufExtract_token(CfgToken, Buf, 1, '|'); Put(Cfg, HKEY("mboxvalue"), CfgToken, HFreeStrBuf); } + FreeStrBuf(&Buf); }