From 878944f1ec521eb70f3e28cd12abef4c21edcbf6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Jun 2003 05:45:40 +0000 Subject: shouldn't null terminate trans2 qfileinfo all_info/name (This used to be commit f7cd16ab58753be25bc9c7b487289361e3882da3) --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 8364c4b509..dcbb543c64 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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)); -- cgit