fix off-by-one error in attrsym

The allocation size for null-terminated character is lacking.
In actual, it is no problem in most case
because codegen_palloc allocates more a memory size than required size.
Merge pull request #1799 from cubicdaiya/issues/off_by_one_error2

fix off-by-one error in attrsym