shouldn't null terminate trans2 qfileinfo all_info/name
authorAndrew Tridgell <tridge@samba.org>
Wed, 4 Jun 2003 05:45:40 +0000 (05:45 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 4 Jun 2003 05:45:40 +0000 (05:45 +0000)
(This used to be commit f7cd16ab58753be25bc9c7b487289361e3882da3)

source3/smbd/trans2.c

index 8364c4b5095949a79ad5c72799266f368a370ac9..dcbb543c648d01fb9bc7f16797c7332096b3ccb5 100644 (file)
@@ -2051,7 +2051,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
                        SCVAL(pdata,21,(mode&aDIR)?1:0);
                        pdata += 24;
                        pdata += 4; /* EA info */
-                       len = srvstr_push(outbuf, pdata+4, dos_fname, -1, STR_TERMINATE);
+                       len = srvstr_push(outbuf, pdata+4, dos_fname, -1, 0);
                        SIVAL(pdata,0,len);
                        pdata += 4 + len;
                        data_size = PTR_DIFF(pdata,(*ppdata));