fix missing setup of buffer parameters when using a shallow copy.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>