w_filepicker: fix off-by-one error in malloc size