From 48febd8a6bd48a2e341949ac1c7346b1ab0d184d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 22 Jun 2009 20:05:18 +0000 Subject: [PATCH] * -1 instead of 256 when allocating strbuf --- webcit/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcit/auth.c b/webcit/auth.c index 5ef52a6de..bc72b7098 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -776,7 +776,7 @@ void display_reg(int during_login) } else { StrBuf *ReturnTo; - ReturnTo = NewStrBufPlain(NULL, 256); + ReturnTo = NewStrBufPlain(NULL, -1); StrBufUrlescAppend(ReturnTo, NULL, "display_main_menu?gotofirst="); StrBufUrlescAppend(ReturnTo, WC->wc_roomname, NULL); lprintf(9, "wc_roomname: %s\n", ChrPtr(WC->wc_roomname)); -- 2.30.2