mruby/mruby — pull request #2643 by cremno (2014-11-19 21:20:59+00:00)
Title: prefer memcpy() to strncpy()

Replace `strncpy()`, which isn't a safer version of `strcpy()`, with `memcpy()` calls.
Also get rid of duplicate `strlen()` calls and properly null-terminate the string returned by `dirname()` in `apilist.c`!