bufferresize function issue with zero size buffer or data

Jaeho Chang's icon

It seems that the bufferresize function in RNBO codebox~ does not handle cases where the size is 0 correctly. For example, resizing a buffer or data from size 0 to 1024, or from 1024 to 0, does not work in either case.

Max Patch
Copy patch and select New From Clipboard in Max.