git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f219e83
)
Whoops - that wasn't a whitespace syncup after all.
author
Tim Potter
<tpot@samba.org>
Wed, 7 May 2003 05:52:44 +0000
(
05:52
+0000)
committer
Tim Potter
<tpot@samba.org>
Wed, 7 May 2003 05:52:44 +0000
(
05:52
+0000)
source/lib/charcnv.c
patch
|
blob
|
history
diff --git
a/source/lib/charcnv.c
b/source/lib/charcnv.c
index 7acb7147fd64f0d4fb48faab39adf43e6e8652f7..102b77592bc6e6b5c2990813bb13fb86bbeb4371 100644
(file)
--- a/
source/lib/charcnv.c
+++ b/
source/lib/charcnv.c
@@
-629,6
+629,8
@@
size_t pull_ucs2(const void *base_ptr, char *dest, const void *src, size_t dest_
ret = convert_string(CH_UCS2, CH_UNIX, src, src_len, dest, dest_len);
if (dest_len)
dest[MIN(ret, dest_len-1)] = 0;
+ else
+ dest[0] = 0;
return src_len;
}