Skip to content

Commit 3bda90e

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix: cmd_camera — use byte slice literal for variable-length Name field
1 parent 2bfc613 commit 3bda90e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/bindercli/cmd_camera.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ func allocateGrallocBuffer(
202202

203203
proxy := allocator.NewAllocatorProxy(svc)
204204

205-
name := make([]byte, allocator.BufferDescriptorInfoNameSize)
206-
copy(name, "camera-buffer")
205+
name := []byte("camera-buffer")
207206

208207
desc := allocator.BufferDescriptorInfo{
209208
Name: name,

0 commit comments

Comments
 (0)