safe_strcpy is unsafe

Blu3Viper david at
Thu Jan 20 02:07:53 GMT 2000

On Thu, 20 Jan 2000, Michael Stockman wrote:
> pstring str;
> safe_strcpy( str, "Hello world", sizeof(str) );

yep, all string things will.  sizeof(str) is one byte less than the actual
length of the string.  :)


More information about the samba-technical mailing list