Fix R_BUF_CUR definition