From 14c6277840a7b067335122a0ae13ed390e9ab3a6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 27 Feb 2002 13:18:51 +0000 Subject: 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) --- source3/smbd/lanman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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; -- cgit