summaryrefslogtreecommitdiff
path: root/source3/aparser/templates
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-05-27 10:18:36 +0000
committerLuke Leighton <lkcl@samba.org>2000-05-27 10:18:36 +0000
commitd7d030f71e4cd17fae114488449d33afc129c380 (patch)
tree366410691d9b26b0d4f7425c16499c38cd5cc6bd /source3/aparser/templates
parent5f7c40f6d02df70dd3a92d5658f79b668e0ed5df (diff)
downloadsamba-d7d030f71e4cd17fae114488449d33afc129c380.tar.gz
samba-d7d030f71e4cd17fae114488449d33afc129c380.tar.bz2
samba-d7d030f71e4cd17fae114488449d33afc129c380.zip
SMBnttrans. modified io_uint8s to return address of actual data instead
of a copy, on unmarshalling. removed fstring, made it io_string, did same thing. io_string() and io_wstring() should be wrapped in a STRING typedef which is bit-switched on FLG2:Unicode. (This used to be commit 7db13bd53807f65a16442d2765a9d2f7ab792b4f)
Diffstat (limited to 'source3/aparser/templates')
-rw-r--r--source3/aparser/templates/prs_uint8s.tpl2
-rw-r--r--source3/aparser/templates/prs_uint8s_fixed.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/aparser/templates/prs_uint8s.tpl b/source3/aparser/templates/prs_uint8s.tpl
index cfc4bab1d2..e5f82670d0 100644
--- a/source3/aparser/templates/prs_uint8s.tpl
+++ b/source3/aparser/templates/prs_uint8s.tpl
@@ -1,2 +1,2 @@
if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*il->@ARRAY_LEN@)) goto fail;
- if (!io_uint8s("@ELEM@", ps, depth+1, il->@ELEM@, il->@ARRAY_LEN@, @FLAGS@)) goto fail;
+ if (!io_uint8s("@ELEM@", ps, depth+1, &il->@ELEM@, il->@ARRAY_LEN@, @FLAGS@)) goto fail;
diff --git a/source3/aparser/templates/prs_uint8s_fixed.tpl b/source3/aparser/templates/prs_uint8s_fixed.tpl
index c8f5581130..f752fa6c84 100644
--- a/source3/aparser/templates/prs_uint8s_fixed.tpl
+++ b/source3/aparser/templates/prs_uint8s_fixed.tpl
@@ -1,2 +1,2 @@
if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*@ARRAY_LEN@)) goto fail;
- if (!io_uint8s("@ELEM@", ps, depth+1, il->@ELEM@, @ARRAY_LEN@, @FLAGS@)) goto fail;
+ if (!io_uint8s("@ELEM@", ps, depth+1, &il->@ELEM@, @ARRAY_LEN@, @FLAGS@)) goto fail;