From 042aafb87df6c05877b8fc7ef0d44877689d860a Mon Sep 17 00:00:00 2001 From: Volodymyr Khomenko Date: Thu, 24 Mar 2011 14:20:28 -0700 Subject: Fix bug 8021 - Incorrect string termination in volume/volume_name for TRANS2-QUERY_FS_INFO/Info Volume. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Mar 24 23:07:09 CET 2011 on sn-devel-104 --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 12cbc3b9e9..693cf02803 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3015,7 +3015,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)st.st_ex_dev, (u pdata, flags2, pdata+l2_vol_szVolLabel, vname, PTR_DIFF(end_data, pdata+l2_vol_szVolLabel), - STR_NOALIGN|STR_TERMINATE); + STR_NOALIGN); SCVAL(pdata,l2_vol_cch,len); data_len = l2_vol_szVolLabel + len; DEBUG(5,("smbd_do_qfsinfo : time = %x, namelen = %d, name = %s\n", -- cgit