diff options
| author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-15 23:24:17 +0200 |
|---|---|---|
| committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-15 23:24:17 +0200 |
| commit | 7bb84e4d9eeaccf292aebe4d349755b87f87a143 (patch) | |
| tree | 6776927244f488d27827041937ea7d0fa5c533c8 /database | |
| parent | 87f88f42f2dc991a29b40adcfd4443e04ee6d126 (diff) | |
| download | eurephia-7bb84e4d9eeaccf292aebe4d349755b87f87a143.tar.gz eurephia-7bb84e4d9eeaccf292aebe4d349755b87f87a143.tar.xz eurephia-7bb84e4d9eeaccf292aebe4d349755b87f87a143.zip | |
BUGFIX: Sometimes get_console_input() would "skip" a prompt if data was still in the stream
This happens when more data is entered than what fits into the buffer. Then the remaining input,
including the new-line will be accepted automatically on the next get_console_input().
It's important to remember that the length argument of get_console_input() do not restrict how
much data the user can type in. It only tells how big the receiving buffer is, thus leaving the
remaining data in the file stream.
The fix for eurephia_init was to make sure a bigger part of the buffer is used when calling
get_console_input(), to be sure that new-line will be accepted into this buffer.
Diffstat (limited to 'database')
0 files changed, 0 insertions, 0 deletions
