diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-11-26 01:05:04 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-11-26 01:05:04 +0900 |
| commit | 1365151dcb65190b05a97768584f68cb14d584c4 (patch) | |
| tree | c23000dea005486b9de1ec85a505c76839cf9efc | |
| parent | bf0875d2bb547c8a57a217097b899c324d5a7d44 (diff) | |
| parent | 5f1e90fc585edb9e9009ff308011a5a1d0a0e455 (diff) | |
| download | mruby-1365151dcb65190b05a97768584f68cb14d584c4.tar.gz mruby-1365151dcb65190b05a97768584f68cb14d584c4.zip | |
Merge pull request #2652 from cremno/mrdb-add-missing-null-termination
mrdb: add missing null-termination
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c index 8234e05dc..734f03f0a 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c @@ -75,6 +75,7 @@ dirname(mrb_state *mrb, const char *path) if ((dir = mrb_malloc(mrb, len + 1)) != NULL) { strncpy(dir, path, len); + dir[len] = '\0'; } return dir; } |
