From 8dcc13933d5c17e2526db81608d75ec671bf09fd Mon Sep 17 00:00:00 2001 From: Volodymyr Khomenko Date: Thu, 24 Mar 2011 14:25:03 -0700 Subject: [PATCH] Fix bug 8021 - Incorrect string termination in volume/volume_name for TRANS2-QUERY_FS_INFO/Info Volume. --- source3/smbd/trans2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 84139da..8d7c5d1 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -2979,7 +2979,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", -- 1.7.3.1