A study of the proton spectra following the capture of K- in 6Li and 12C with FINUDA