Resolved a warning for deprecated feature.

warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

This change also compiles smaller than the old version.