wizkit follow-up

The recent wizkit change caused the build to
fail on all environments other than unix and vms.

>..\src\files.c(1607) : error C2065: 'envp' : undeclared identifier
>..\src\files.c(1607) : warning C4047: '=' :
>'int ' differs in levels of indirect ion from 'char *'
>..\src\files.c(1608) : error C2100: illegal indirection
>..\src\files.c(1608) : warning C4047: 'function' :
>'const char *' differs in levels of indirection from 'int '
>..\src\files.c(1608) : warning C4024: 'strncpy' :
This commit is contained in:
nethack.allison
2002-02-24 17:17:25 +00:00
parent 1c6b03c836
commit f9244b56ad

View File

@@ -1601,8 +1601,8 @@ fopen_wizkit_file()
FILE *fp;
#if defined(VMS) || defined(UNIX)
char tmp_wizkit[BUFSZ];
char *envp;
#endif
char *envp;
envp = nh_getenv("WIZKIT");
if (envp && *envp) (void) strncpy(wizkit, envp, WIZKIT_MAX - 1);