summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-10-05 06:50:43 +0000
committerRichard Sharpe <sharpe@samba.org>2002-10-05 06:50:43 +0000
commit4506f260fb6e533174cffef38357b8338c43d717 (patch)
tree49eecbde10ddf759ebc7ca739c338876a75127b8 /source3
parent7ee8de012b38d517a3ebccd377b13fe79b9e4103 (diff)
downloadsamba-4506f260fb6e533174cffef38357b8338c43d717.tar.gz
samba-4506f260fb6e533174cffef38357b8338c43d717.tar.bz2
samba-4506f260fb6e533174cffef38357b8338c43d717.zip
Push Steve Langasek's fix ...
(This used to be commit 0325b938f5b3d1c592da666b43c7b20dcc7ba5eb)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 8bfad4ab33..3b07eb3a9b 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -72,7 +72,7 @@ static int CopyExpanded(connection_struct *conn,
StrnCpy(buf,src,sizeof(buf)/2);
pstring_sub(buf,"%S",lp_servicename(snum));
standard_sub_conn(conn,buf,sizeof(buf));
- l = push_ascii(*dst,buf,*n-1, STR_TERMINATE);
+ l = push_ascii(*dst,buf,*n, STR_TERMINATE);
(*dst) += l;
(*n) -= l;
return l;