pidl: fix handling of output arguments in s3 client stubs.
authorGünther Deschner <gd@samba.org>
Fri, 27 Nov 2009 15:44:39 +0000 (16:44 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 30 Nov 2009 13:44:54 +0000 (14:44 +0100)
a20e095 used (uint8_t) instead of (uint8_t *).

Guenther

pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm

index 9a29214697bf219c428a91d1f23a8d83eee3021c..a45abdbc35532bc94222d7efa32c3d75936faad0 100644 (file)
@@ -98,7 +98,7 @@ sub ParseOutputArgument($$$)
                my $env = GenerateFunctionInEnv($fn, "r.");
                my $size_is = ParseExpr($e->{LEVELS}[$level]->{SIZE_IS}, $env, $e->{ORIGINAL});
                if (has_property($e, "charset")) {
-                   $self->pidl("memcpy(discard_const_p(uint8_t, $e->{NAME}), r.out.$e->{NAME}, ($size_is) * sizeof(*$e->{NAME}));");
+                   $self->pidl("memcpy(discard_const_p(uint8_t *, $e->{NAME}), r.out.$e->{NAME}, ($size_is) * sizeof(*$e->{NAME}));");
                } else {
                    $self->pidl("memcpy($e->{NAME}, r.out.$e->{NAME}, ($size_is) * sizeof(*$e->{NAME}));");
                }