diff options
Diffstat (limited to '')
-rw-r--r-- | lcd4linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lcd4linux.c b/lcd4linux.c index 8691ab3..0fc3d15 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -1,4 +1,4 @@ -/* $Id: lcd4linux.c 756 2007-01-23 04:38:43Z michael $ +/* $Id: lcd4linux.c 783 2007-03-22 06:10:36Z michael $ * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/lcd4linux.c $ * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/lcd4linux.c $ * @@ -82,7 +82,7 @@ static void interactive_mode(void) RESULT result = { 0, 0, 0, NULL }; printf("\neval> "); - for (fgets(line, 1024, stdin); !feof(stdin); fgets(line, 1024, stdin)) { + for (fgets(line, sizeof(line), stdin); !feof(stdin); fgets(line, sizeof(line), stdin)) { if (line[strlen(line) - 1] == '\n') line[strlen(line) - 1] = '\0'; if (strlen(line) > 0) { |