diff options
author | goodale <goodale@61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1> | 2000-12-12 16:47:18 +0000 |
---|---|---|
committer | goodale <goodale@61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1> | 2000-12-12 16:47:18 +0000 |
commit | 3876e38b06441b5a48c60bdbb5eeb439c7b4e8b5 (patch) | |
tree | f14b50cbb31340f6f5f642479582b6b3c2dfd4b3 | |
parent | a94f55b0d26840e18f8533f9e590fc48f6a06f06 (diff) |
Fixing format string bug.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPDExtra/trunk@23 61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1
-rw-r--r-- | src/Groups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Groups.c b/src/Groups.c index 1f71797..5cbf48f 100644 --- a/src/Groups.c +++ b/src/Groups.c @@ -160,12 +160,12 @@ static int MessagesPage(cGH *cctkGH, httpRequest *request, void *data) if (strlen(memo)>0) { - sprintf(message,"<table width=\"100\%\" cellpadding=5 cellspacing=5><tr><td BGCOLOR=\"#E9F4D3\" >%s</td></tr></table>",memo); + sprintf(message,"<table width=\"100%%\" cellpadding=5 cellspacing=5><tr><td BGCOLOR=\"#E9F4D3\" >%s</td></tr></table>",memo); HTTP_Write(request, message, strlen(message)); } else { - strcpy(message,"<table width=\"100\%\" cellpadding=5 cellspacing=5><tr><td BGCOLOR=\"#E9F4D3\">No messages yet ... use the form above to add one</td></tr></table>"); + strcpy(message,"<table width=\"100%%\" cellpadding=5 cellspacing=5><tr><td BGCOLOR=\"#E9F4D3\">No messages yet ... use the form above to add one</td></tr></table>"); HTTP_Write(request, message, strlen(message)); } |