- /** Begin inner box */
- stresc(boxtitle, 256, floor_name, 1, 0);
- svprintf(HKEY("BOXTITLE"), WCS_STRING, boxtitle);
- do_template("beginbox", NULL);
+ StrBuf *Buf;
+
+ Buf = NewStrBufPlain(floor_name, -1);
+ DoTemplate(HKEY("beginbox"), NULL, Buf, CTX_STRBUF);
+
+ FreeStrBuf(&Buf);