git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e0cf2f
)
ndr_string: Fix a signed/unsigned glitch
author
Volker Lendecke
<vl@samba.org>
Mon, 26 Mar 2018 10:00:40 +0000
(12:00 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 28 Mar 2018 11:03:25 +0000
(13:03 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
librpc/ndr/ndr_string.c
patch
|
blob
|
history
diff --git
a/librpc/ndr/ndr_string.c
b/librpc/ndr/ndr_string.c
index 067f91781eeb416799c656b32856cd3e8f7927d2..42ba3cfccc1a62c04b0e34cf02752a2daa1ca86d 100644
(file)
--- a/
librpc/ndr/ndr_string.c
+++ b/
librpc/ndr/ndr_string.c
@@
-636,7
+636,7
@@
_PUBLIC_ enum ndr_err_code ndr_pull_charset_to_null(struct ndr_pull *ndr, int nd
_PUBLIC_ enum ndr_err_code ndr_push_charset(struct ndr_push *ndr, int ndr_flags, const char *var, uint32_t length, uint8_t byte_mul, charset_t chset)
{
- s
s
ize_t required;
+ size_t required;
if (NDR_BE(ndr) && chset == CH_UTF16) {
chset = CH_UTF16BE;