Fix uninitialized variable in hex_to_str().

 * In the worst case cause a Segmentation Fault
   * VM read the irep is illegal irep code.

 * Because, since it's not NULL terminated in the process of strncpy(3),
   it may strtol(3) doesn't return the correct value.