Use size of target buffer for allocation