mirror of
https://github.com/digarok/gsplus.git
synced 2024-05-28 13:41:31 +00:00
bug fixes.
This commit is contained in:
parent
f9a86eed8a
commit
0021956044
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user