Quote Originally Posted by qwerz View Post
Then how do you suggest to encrypt that string with a XORencryption?
You must provide a writable buffer, an actual char array for example. You were not doing that in your attempt.

That's the danger of doing this, and why I mentioned back in my second post on this thread the many ways I can break your code. You still didn't address the NULL first argument -- that hole is still there.

Regards,

Paul McKenzie