diff options
Diffstat (limited to 'src/Groups.c')
-rw-r--r-- | src/Groups.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Groups.c b/src/Groups.c index eb5af1d..08325e1 100644 --- a/src/Groups.c +++ b/src/Groups.c @@ -8,7 +8,6 @@ @version $Id$ @@*/ -#include <stdlib.h> #include <string.h> #include "cctk.h" @@ -74,9 +73,9 @@ int HTTPUTILS_RegisterPages (void) static int MessagesPage (const cGH *GH, httpRequest *request, void *data) { int retval = 0; - char currtime[64], currdate[64]; + char currtime[64] = EMPTYSTRING, currdate[64] = EMPTYSTRING; String *message = String_New(); - const char *temp, *name, *memo; + const char *temp; static char *message_board = NULL; @@ -85,8 +84,8 @@ static int MessagesPage (const cGH *GH, httpRequest *request, void *data) if (HTTP_Num_Arguments( request ) > 0) { - name = HTTP_ArgumentValue (request, "name"); - memo = HTTP_ArgumentValue (request, "memo"); + const char *name = HTTP_ArgumentValue (request, "name"); + const char *memo = HTTP_ArgumentValue (request, "memo"); if (name && *name && memo && *memo) { @@ -173,7 +172,7 @@ static int MessagesPage (const cGH *GH, httpRequest *request, void *data) "<tr><td valign=\"top\">Message:</td><td>" "<textarea name=\"memo\" rows=\"10\" cols=\"40\"></textarea>\n" "</td></tr></table>\n" - "<input type=\"submit\" value=\"Submit Message\" />\n" + "<p>\n<input type=\"submit\" value=\"Submit Message\" />\n</p>\n" "<table width=\"80%\"><tr><td>\n" "<h2>Messages:</h2></td></tr>\n" "<tr><td><table width=\"100%\" cellpadding=\"5\" cellspacing=\"5\">" |