git.samba.org
/
import
/
samba-cvsimport.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b8b98d5
)
Off by one error in detecting Win2k unicode bug.
author
Jeremy Allison
<jra@samba.org>
Wed, 1 Mar 2000 23:37:33 +0000
(23:37 +0000)
committer
Jeremy Allison
<jra@samba.org>
Wed, 1 Mar 2000 23:37:33 +0000
(23:37 +0000)
Jeremy.
source/smbd/nttrans.c
patch
|
blob
|
history
diff --git
a/source/smbd/nttrans.c
b/source/smbd/nttrans.c
index 4dd80f15793fdcc6b0e01c12902c7c8a2f1478fa..a4d59004e8f67b64fabe86b93aed89cece0f2b44 100644
(file)
--- a/
source/smbd/nttrans.c
+++ b/
source/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.