diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-09 09:44:47 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-09 09:44:47 -0700 |
| commit | 8e23410a7a95f36613fb16539d1796df7aad145d (patch) | |
| tree | 4397e1ebd196a4adf4e2e84d1dd299068f6213d0 | |
| parent | ac005ea9391015dc049cc0b9061e879007786ac7 (diff) | |
| parent | b379f6e94f27e6a5db6b639e60d1de5a285ceb67 (diff) | |
| download | mruby-8e23410a7a95f36613fb16539d1796df7aad145d.tar.gz mruby-8e23410a7a95f36613fb16539d1796df7aad145d.zip | |
Merge pull request #1165 from iij/pr-fix-mirb
Fix mirb to use readline
| -rw-r--r-- | tools/mirb/mirb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index 008829cfb..cde0b0d4b 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -273,7 +273,7 @@ main(int argc, char **argv) printf("\n"); break; } - strncat(last_code_line, line, sizeof(last_code_line)-1); + strncpy(last_code_line, line, sizeof(last_code_line)-1); add_history(line); free(line); #endif |
