r5118: added support for node status replies in nbtd. nmblookup -S now works against...
[samba.git] / source / librpc / ndr / ndr_basic.c
index e38b9d394aa7adc79dfe35c296ebe32a95d587a1..61b3c9ec4dcaaea8f11f23dee4db20d7caed4061 100644 (file)
@@ -887,7 +887,7 @@ NTSTATUS ndr_push_string(struct ndr_push *ndr, int ndr_flags, const char *s)
                d_len = (flags & LIBNDR_FLAG_STR_FIXLEN32)?32:15;
                NDR_PUSH_NEED_BYTES(ndr, byte_mul*d_len);
                ret = convert_string(CH_UNIX, chset, 
-                                    s, s_len + 1,
+                                    s, s_len,
                                     ndr->data+ndr->offset, byte_mul*d_len);
                if (ret == -1) {
                        return ndr_push_error(ndr, NDR_ERR_CHARCNV,