- ((strcasecmp(ChrPtr(ListView), "folders"))
- && (strcasecmp(ChrPtr(ListView), "table")))) {
- if (ListView == NULL)
- ListView = NewStrBuf();
- StrBufPrintf(ListView, "%s", "rooms");
- set_preference("roomlistview", ListView, 0);
+ ((strcasecmp(ChrPtr(ListView), "folders") != 0) &&
+ (strcasecmp(ChrPtr(ListView), "table") != 0)))
+ {
+ if (ListView == NULL) {
+ ListView = NewStrBufPlain("rooms", sizeof("rooms") - 1);
+ set_preference("roomlistview", ListView, 0);
+ }
+ else {
+ StrBufPrintf(ListView, "rooms");
+ save_preferences();
+ }