X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fpreferences.c;h=c29ec1c0f43326bf50776120858ca8216f68c8d6;hb=0b1310a64450f9f94ddc15a446133a38a0e04f60;hp=6c59ed24d1112f9bd3b7f4c86d36d5b5e677ad25;hpb=5c83d29c2e0a786c0b3fecb7b6bf7bdafebc7e69;p=citadel.git
diff --git a/webcit/preferences.c b/webcit/preferences.c
index 6c59ed24d..c29ec1c0f 100644
--- a/webcit/preferences.c
+++ b/webcit/preferences.c
@@ -158,7 +158,7 @@ void save_preferences(void) {
offset = 0;
while (nchars > 0) {
if (n == 0)
- nchars = 70;
+ nchars = 71;
else
nchars = 80;
@@ -167,7 +167,7 @@ void save_preferences(void) {
if (n == 0)
serv_printf("%s|%s", Key, ChrPtr(SubBuf));
else
- serv_printf(" %s", Key, ChrPtr(SubBuf));
+ serv_printf(" %s", ChrPtr(SubBuf));
offset += nchars;
n++;
@@ -471,13 +471,13 @@ void display_preferences(void)
);
wprintf("");
wprintf(_("No signature"));
wprintf(" , \n");
wprintf("");
wprintf(_("Use this signature:"));
wprintf("
"
@@ -487,7 +487,7 @@ void display_preferences(void)
get_preference("signature", &Signature);
ebuf = NewStrBuf();
StrBufEUid_unescapize(ebuf, Signature);
- escputs(ChrPtr(ebuf));
+ escputs((char*)ChrPtr(ebuf));///TODO
FreeStrBuf(&ebuf);
wprintf(""
"
"
@@ -511,7 +511,7 @@ void display_preferences(void)
wprintf(_("Default character set for email headers:"));
wprintf("");
wprintf("");
wprintf(" | ");
@@ -563,7 +563,7 @@ void display_preferences(void)
void set_preferences(void)
{
long fmt;
- StrBuf *ebuf;
+ StrBuf *buf, *encBuf;
int *time_format_cache;
time_format_cache = &(WC->time_format_cache);
@@ -595,9 +595,10 @@ void set_preferences(void)
set_preference("default_header_charset", NewStrBufPlain(bstr("default_header_charset"), -1), 0);
set_preference("emptyfloors", NewStrBufPlain(bstr("emptyfloors"), -1), 0);
- ebuf = NewStrBufPlain(bstr("signature"), -1);
- /////TODOeuid_escapize(ebuf);
- set_preference("signature", ebuf, 1);
+ buf = NewStrBufPlain(bstr("signature"), -1);
+ encBuf = NewStrBuf();
+ StrBufEUid_escapize(encBuf, buf);
+ set_preference("signature", encBuf, 1);
display_main_menu();
}