[PATCH 1/2] s3fs-popt: Add function to burn the commandline password.

Jeremy Allison jra at samba.org
Tue Nov 6 18:34:54 MST 2012

On Tue, Nov 06, 2012 at 07:41:27PM -0500, Scott Lovenberg wrote:
>  memset(p, '\0', strlen(p)) doesn't work for multibyte characters.
> Any chance you'll see them here?  I'm just assuming since you used
> strchr_m instead of strchr.

Yes it does. MB characters in this case are utf8, or another
internal UNIX charset which is guarenteed not to contain NULL
characters inside it. MB doesn't mean UTF16 or any other
unicode encoding.


More information about the samba-technical mailing list