aboutsummaryrefslogtreecommitdiff
path: root/src/Redirect.c
diff options
context:
space:
mode:
authorswhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2004-04-19 13:10:13 +0000
committerswhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2004-04-19 13:10:13 +0000
commitb6727f88dd115b1176003e695182dfecd5f7d4c0 (patch)
tree85507db841b578c6463c1067cb225ef00f93a11c /src/Redirect.c
parentf74e95157e422e2b3f583582f3cb0f5adbc6868d (diff)
Addresses Cactus bug 923
Made the download list to be organized by variable, then by data output type, then by slice. To facilitate list manipulation, added temporarily a list module 'PtrList', which perhaps may prove of more general use in the future. Pursuant to Cactus bug 907 Added parameter HTTPExtra::viewport_refresh_seconds to send Refresh header to web browser. Made ViewPort window to respond to viewport_refresh_seconds parameter General HTML improvements...checked with Amaya and lynx. Re-organized CSS info in HTTPD web pages. Got rid of httpuMimeType code which didn't do anything. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@195 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Redirect.c')
-rw-r--r--src/Redirect.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Redirect.c b/src/Redirect.c
index 5502e5c..ced0287 100644
--- a/src/Redirect.c
+++ b/src/Redirect.c
@@ -8,10 +8,6 @@
@version $Id$
@@*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "cctk.h"
#ifdef CCTK_MPI
@@ -114,7 +110,8 @@ int HTTP_SetupRedirect(int port,
#ifdef HTTPD_DEBUG
printf("alladdr is %s\n", alladdr);
#endif
- strcpy(httpmaster,alladdr); /* the 0th element is the master hostname */
+ strncpy(httpmaster,alladdr, sizeof(httpmaster)); /* the 0th element is the master hostname */
+ httpmaster[sizeof(httpmaster) - 1] = '\0';
/* so compare my addr to the list sequentially */
for(i=0;i<nprocs;i++)