summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-01 23:37:33 +0000
committerJeremy Allison <jra@samba.org>2000-03-01 23:37:33 +0000
commit99be80bd805df7137490c5b372a4f5b79c31460a (patch)
tree8e5acc3f952912f7f8f8f2d740ea0808cb477c07 /source3/smbd/nttrans.c
parent27921069a7814c581e9c7619fb203263cad6eec1 (diff)
downloadsamba-99be80bd805df7137490c5b372a4f5b79c31460a.tar.gz
samba-99be80bd805df7137490c5b372a4f5b79c31460a.tar.bz2
samba-99be80bd805df7137490c5b372a4f5b79c31460a.zip
Off by one error in detecting Win2k unicode bug.
Jeremy. (This used to be commit 4971e8b44ac38806f6fc0b3bd22d3ccafd1f5d4e)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 4dd80f1579..a4d59004e8 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -254,7 +254,7 @@ static void my_wcstombs(char *dst, uint16 *src, size_t len)
static void get_filename( char *fname, char *inbuf, int data_offset, int data_len, int fname_len)
{
- if((data_len - fname_len > 1) || (inbuf[data_offset] == '\0')) {
+ if((data_len - fname_len >= 1) || (inbuf[data_offset] == '\0')) {
/*
* NT 5.0 Beta 2 or Windows 2000 final release (!) has kindly sent us a UNICODE string
* without bothering to set the unicode bit. How kind.