summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-02-27 13:18:51 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-02-27 13:18:51 +0000
commit14c6277840a7b067335122a0ae13ed390e9ab3a6 (patch)
treee714d0781744eb6a41e663da12e37ce20f776e7c /source3
parent90d264fa76e3608027aa7e854c40804d3e99c84f (diff)
downloadsamba-14c6277840a7b067335122a0ae13ed390e9ab3a6.tar.gz
samba-14c6277840a7b067335122a0ae13ed390e9ab3a6.tar.bz2
samba-14c6277840a7b067335122a0ae13ed390e9ab3a6.zip
This should fix up the level 0 'convert_string' debug messages that we have
been seing since the unicode conversion. It looks like a simple oversight in the move away from StrnCpy (which takes amount of space -1 as an arg) to push_ascii etc which take the absolute amount of space. Andrew Bartlett (This used to be commit 4447c6bd4d9c273ef5bf4eb23726923ee58bf38d)
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 128d8bea4a..5bf7bb89e3 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -82,7 +82,7 @@ static int CopyAndAdvance(char** dst, char* src, int* n)
{
int l;
if (!src || !dst || !n || !(*dst)) return(0);
- l = push_ascii(*dst,src,*n-1, STR_TERMINATE);
+ l = push_ascii(*dst,src,*n, STR_TERMINATE);
(*dst) += l;
(*n) -= l;
return l;