diff options
author | Jeremy Allison <jra@samba.org> | 2000-03-01 23:37:33 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-03-01 23:37:33 +0000 |
commit | 99be80bd805df7137490c5b372a4f5b79c31460a (patch) | |
tree | 8e5acc3f952912f7f8f8f2d740ea0808cb477c07 /source3/smbd | |
parent | 27921069a7814c581e9c7619fb203263cad6eec1 (diff) | |
download | samba-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')
-rw-r--r-- | source3/smbd/nttrans.c | 2 |
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. |