Commit b379f6e9 authored by Akito Mochizuki's avatar Akito Mochizuki

Fix mirb to use readline

parent 87cd4c5e
......@@ -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