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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user