From d7d030f71e4cd17fae114488449d33afc129c380 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sat, 27 May 2000 10:18:36 +0000 Subject: 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) --- source3/aparser/templates/prs_uint8s.tpl | 2 +- source3/aparser/templates/prs_uint8s_fixed.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/aparser/templates') 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; -- cgit