Changed "channame" to "bufname"