bug fixes.

This commit is contained in:
Kelvin Sherlock 2019-02-10 22:45:42 -05:00
parent f9a86eed8a
commit 0021956044

View File

@ -100,10 +100,10 @@ char *x_readline(const char *prompt) {
readline_init = 1;
}
char *cp = readline(prompt);
cp = readline(prompt);
if (!cp) return NULL;
ok = strlen(cp);
if (ok > sizeof(buffer1) - 1) {
if (ok > sizeof(buffer) - 1) {
free(cp);
return "";
}