--- In [email protected], Luciano Cattani <xcianox2...@...> wrote:
>
> 
> > LONG ProcessInputString( LPSTR strInput)
> > {
> > char* strfield2pass = "";
> > _tcscpy(strfield2pass, strInput);
> 
> Where are you copying the 'strInput' string?
> This code seems wrong.

Yes, you are attempting to overwrite the constant string "" (which is just the 
\0 end-of-string character). You need something like:

    char strfield2pass[100];

although you should add a check that the length of strInput + 1 (for the \0) is 
not greater than the size of strfield2pass[].


Reply via email to