Hello,
wouldn't it be nicer to use sizeof(copyCmd) here?
if (GetEnvironmentVariable(COPYCMD, copyCmd, MAXSTRING)) {
There are many spots like this in wcmdmain.c
Regards Alex
-----Original Message----- From: wine-cvs-bounces@winehq.org [mailto:wine-cvs-bounces@winehq.org] On Behalf Of ext Alexandre
Julliard ....
- /* Preinitialize flags based on COPYCMD */
- if (GetEnvironmentVariable(COPYCMD, copyCmd, MAXSTRING)) {
if (wcsstr(copyCmd, PROMPTSTR1) != NULL ||
wcsstr(copyCmd, PROMPTSTR2) != NULL) {
flags |= OPT_NOPROMPT;
}
- }