small CHAR_MAX bug, size is correct now