error: ā%sā directive output may be truncated writing up to 255 bytes
into a region of size 250 [-Werror=format-truncation=]
snprintf(homedir, sizeof(homedir), "/home/%s", username);
^~ ~~~~~~~~
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
const char *suffix,
int alloced)
{
- fstring username, logonscript, homedrive, homepath = "", homedir = "";
+ fstring username, logonscript, homedrive, homepath = "";
+ char homedir[262] = {0};
fstring hex_nt_passwd, hex_lm_passwd;
fstring description, profilepath, fullname, sambaSID;
char *flags, *user_rdn;