diff options
author | Reinhard Tartler <siretart@tauware.de> | 2007-04-30 09:35:54 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2007-04-30 09:35:54 +0200 |
commit | 874ef72c5b807b61bc53dbaa0fa623b40bff1736 (patch) | |
tree | 3c44151e2132fa82d3e7eef2aa82eee1c9e1369d /lcd4linux.c | |
parent | cbaf3ad73900f63eae0add0e33439a1bf04b5a1e (diff) | |
download | lcd4linux-874ef72c5b807b61bc53dbaa0fa623b40bff1736.tar.gz |
new upstream version
Diffstat (limited to 'lcd4linux.c')
-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) { |