Commit 8e23410a authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1165 from iij/pr-fix-mirb

Fix mirb to use readline
parents ac005ea9 b379f6e9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment