version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.9 2000/05/26 09:50:49 jec Exp $"; | | * "$Id: main.c,v 1.10 2000/06/06 07:05:21 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
char *normalize_path (char *src, char *dst) { | | char *normalize_path (char *src, char *dst) { |
char *p, *q; | | char *p, *q; |
char buf[MAX_BUF]; | | char buf[HUGE_BUF]; |
static char path[MAX_BUF]; | | static char path[HUGE_BUF]; |
| | |
/* LOG(llevDebug,"path before normalization >%s<>%s<\n", src, dst); */ | | /* LOG(llevDebug,"path before normalization >%s<>%s<\n", src, dst); */ |
| | |
| | |
*/ | | */ |
| | |
void enter_exit(object *op, object *exit_ob) { | | void enter_exit(object *op, object *exit_ob) { |
char apartment[MAX_BUF]; | | char apartment[HUGE_BUF]; |
mapstruct *oldmap, dummy_map; | | mapstruct *oldmap, dummy_map; |
int x=0, y=0, removed=QUERY_FLAG(op,FLAG_REMOVED); | | int x=0, y=0, removed=QUERY_FLAG(op,FLAG_REMOVED); |
char *newpath=NULL, *lastlevel=NULL; | | char *newpath=NULL, *lastlevel=NULL; |
| | |
FILE *newmap_params; /* give the new map its parameters */ | | FILE *newmap_params; /* give the new map its parameters */ |
newmap_params=fopen("/tmp/rmap_params","w"); | | newmap_params=fopen("/tmp/rmap_params","w"); |
if(newmap_params!=NULL) { | | if(newmap_params!=NULL) { |
char newmap_name[MAX_BUF]; | | char newmap_name[HUGE_BUF]; |
char oldmap_name[MAX_BUF]; | | char oldmap_name[HUGE_BUF]; |
int i; | | int i; |
| | |
/* write the map parameters to the file. */ | | /* write the map parameters to the file. */ |