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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 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;
> +        }
> +    }
> +
> 


Reply via email to