s3/smbd: Fix string buffer overflow causing heap corruption