s3:passdb: Fix size of ascii_p16
[samba.git] / source3 / passdb / pdb_smbpasswd.c
index 8a3d48b998009753c14bb8c69daf2785a2ba18e8..2615cbdd78813066b34b1914d5542cb68a8a3dc5 100644 (file)
@@ -741,7 +741,7 @@ static bool mod_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, con
        char linebuf[LINEBUF_SIZE + 1];
        char readbuf[1024];
        int c;
-       fstring ascii_p16;
+       char ascii_p16[FSTRING_LEN + 20];
        fstring encode_bits;
        unsigned char *p = NULL;
        size_t linebuf_len = 0;